시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 256 MB 9 9 9 100.000%

문제

Box is a really violent sport. To compensate, there is a code of conduct to maintain chivalry and fellowship atop the ring in friendly matches. One of the most well known rules of this code of conduct is to avoid hitting the opponent below the waist or above the neck.

Given the heights of the waist and neck of an opponent, and the heights of a set of punches, calculate how many of those punches are fair according to the rule above.

입력

The first line contains three integers W, N and P, representing respectively the height of the waist of the opponent, the height of his neck, and the number of thrown punches (1 ≤ W < N ≤ 200 and 1 ≤ P ≤ 100). The second line contains P integers H1, H2, . . . , HP (1 ≤ Hi ≤ 200 for i = 1, 2, . . . , P) indicating the heights of the punches. All heights are given in centimeters.

출력

Output a line with an integer representing the number of punches that are fair, according to the code of conduct.

예제 입력

80 150 3
10 100 160

예제 출력

1

예제 입력 2

80 150 3
80 100 150

예제 출력 2

3

예제 입력 3

2 199 5
2 1 200 199 1

예제 출력 3

2

힌트