Problem2271--Failing Grade

2271: Failing Grade

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

Time Limit: 2 sec / Memory Limit: 1024 MB

Score : 200200 points

Problem Statement

NN students took an exam. The students are labeled as Student 11, Student 22\dots, Student NN, and Student ii scored a_iai points.
A student who scored less than PP points are considered to have failed the exam and cannot earn the credit. Find the number of students who failed the exam.

Constraints

  • 1 \leq N \leq 10^51N105
  • 1 \leq P \leq 1001P100
  • 0 \leq a_i \leq 1000ai100 (1 \leq i \leq N)(1iN)
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:
NNPPa_1a1a_2a2\dotsa_NaN

Output

Print the number of students who failed the exam.

Sample Input Copy

4 50
80 60 40 0

Sample Output Copy

2

HINT

Students 11 and 22, who scored 8080 and 6060 points, respectively, succeeded in scoring at least 5050 points to earn the credit.
On the other hand, Students 33 and 44, who scored 4040 and 00 points, respectively, fell below 5050 points and failed the exam. Thus, the answer is 22.

Source/Category