#B4198. Essay Competition Advancement

    ID: 11855 Type: Default 1000ms 256MiB

Essay Competition Advancement

Essay Competition Advancement

In an essay competition preliminary round, Xiao \(X\) participated along with a total of \(n\) students from his school. A week later, when the results were published, the score cutoffs for the first, second, and third prizes were announced along with everyone's scores, but the requirements for advancing to the next round were not mentioned.

If obtaining the \(A\) prize (whose cutoff score is \(x\)) is necessary to advance, and a participant with score \(y\) receives the \(A\) prize if \(y \geq x\), determine how many students from the school can advance to the next round.

Input: The first line contains two integers \(n\) and \(x\) (the number of participants and the cutoff score for the \(A\) prize). The second line contains \(n\) integers representing the scores of the participants.

Output: Output a single integer representing the number of students whose score is at least \(x\).

inputFormat

The input consists of two parts:

  • The first line contains two integers: \(n\) (the number of participants) and \(x\) (the cutoff score for the \(A\) prize).
  • The second line contains \(n\) space-separated integers, where each integer indicates a participant's score.

outputFormat

Output a single integer: the number of participants whose score is at least \(x\).

sample

5 60
70 55 60 45 80
3