#C373. Counting Passing Students

    ID: 47189 Type: Default 1000ms 256MiB

Counting Passing Students

Counting Passing Students

You are given several test cases, each describing a group of students and a passing grade threshold. For each test case, you must count how many students passed and how many failed.

A student is considered to have passed if their grade satisfies \(grade \geq M\), where \(M\) is the passing threshold.

For each test case you need to output two integers separated by a single space: the number of students who passed and the number of students who failed.

inputFormat

The input is given from standard input (stdin) and has the following format:

  • The first line contains an integer \(T\) representing the number of test cases.
  • For each test case, the first line contains two integers \(N\) and \(M\) where \(N\) is the number of students and \(M\) is the passing grade threshold.
  • The next line contains \(N\) integers, which are the grades of the students.

All tokens are separated by spaces or newlines.

outputFormat

For each test case, print a single line with two integers separated by a space: the first integer is the number of students who passed (grade \(\geq M\)) and the second integer is the number of students who failed.

Output must be printed to standard output (stdout).

## sample
3
5 50
42 65 78 90 33
4 75
78 58 88 92
3 90
45 91 89
3 2

3 1 1 2

</p>