A - Number of Successful Applicants Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MiB

配点 : 200 点

問題文

高橋君は学校の期末テストの採点を終えたところです。このテストには N 人の生徒が受験しており、各生徒には 1 から N までの出席番号が振られています。

学校の規定では、テストの得点が K 点以上の生徒は合格となり、追試を免除されます。K 点未満の生徒は不合格となり、追試を受けなければなりません。

出席番号 i の生徒のテストの得点は S_i 点です。

高橋君は、合格した生徒の人数を知りたいと思っています。テストで K 点以上の得点を獲得した生徒の人数を求めてください。

制約

  • 1 \leq N \leq 2 \times 10^5
  • 0 \leq K \leq 100
  • 0 \leq S_i \leq 100 (1 \leq i \leq N)
  • 入力はすべて整数

入力

N K
S_1 S_2 \ldots S_N
  • 1 行目には、生徒の人数を表す整数 N と、合格の基準点を表す整数 K が、スペース区切りで与えられる。
  • 2 行目には、各生徒のテストの得点を表す整数 S_1, S_2, \ldots, S_N が、スペース区切りで与えられる。

出力

合格した生徒の人数を 1 行で出力せよ。


入力例 1

5 60
72 45 60 88 59

出力例 1

3

入力例 2

10 50
100 49 50 0 75 50 33 82 51 48

出力例 2

6

入力例 3

20 70
65 70 82 55 91 70 43 88 69 71 100 0 45 78 62 95 70 68 84 50

出力例 3

11

Score : 200 pts

Problem Statement

Takahashi has just finished grading the school's final exam. N students took this exam, and each student is assigned an attendance number from 1 to N.

According to the school's regulations, students who scored K points or more on the exam pass and are exempt from the makeup exam. Students who scored less than K points fail and must take the makeup exam.

The score of the student with attendance number i is S_i points.

Takahashi wants to know the number of students who passed. Find the number of students who scored K points or more on the exam.

Constraints

  • 1 \leq N \leq 2 \times 10^5
  • 0 \leq K \leq 100
  • 0 \leq S_i \leq 100 (1 \leq i \leq N)
  • All inputs are integers

Input

N K
S_1 S_2 \ldots S_N
  • The first line contains an integer N representing the number of students and an integer K representing the passing score threshold, separated by a space.
  • The second line contains integers S_1, S_2, \ldots, S_N representing each student's exam score, separated by spaces.

Output

Print the number of students who passed on a single line.


Sample Input 1

5 60
72 45 60 88 59

Sample Output 1

3

Sample Input 2

10 50
100 49 50 0 75 50 33 82 51 48

Sample Output 2

6

Sample Input 3

20 70
65 70 82 55 91 70 43 88 69 71 100 0 45 78 62 95 70 68 84 50

Sample Output 3

11