Stepan in quarantine
Limits: 2 sec., 256 MiB
This statement was translated automatically from Ukrainian. In case of any discrepancy, the Ukrainian version is authoritative.
Stepan O.V. sat at home for a year — of course, because of the quarantine. He got tired of it, and he decided that he needed to go to the movie theater. But his friend ZEnik said that there are very many regions in the "red" zone all over the country, and he needs to stay at home. Stepan did not believe him and wanted to count the number of such regions himself and decide whether it is worth leaving the house.
Stepan knows the number of sick people in each region and the limit of the "red" zone. He considers that a region is in the "red" zone if the number of sick people is strictly greater than the given limit.
During the quarantine, Stepan forgot how to count and asked you to find the number of regions in the "red" zone.
Input
The first line contains two integers \(n\) and \(k\) — the number of regions and the limit of the "red" zone, respectively.
The second line contains \(n\) integers \(c_i\) — the number of sick people in the regions.
Output
In a single line, print one integer — the number of regions in the "red" zone.
Constraints
\(1 \le n \le 10^5\),
\(0 \le c_i, k \le 10^9\).
Samples
| Input (stdin) | Output (stdout) |
|---|---|
| 4 10 10 5 11 20 | 2 |
Notes
The third and fourth regions have a number of sick people greater than 10, so the answer is 2.
Submit a solution
| Element Type | Created | Who | Problem | Compiler | Result | Time (sec.) | Memory (MiB) | # | Actions |
|---|
| Element Type | Created | Who | Problem | Compiler | Result | Time (sec.) | Memory (MiB) | # | Actions |
|---|