#C647. Count Students Above Average

    ID: 50233 Type: Default 1000ms 256MiB

Count Students Above Average

Count Students Above Average

You are given the number of students and their corresponding scores. Your task is to compute the number of students whose score is strictly greater than the average score. The average score is defined as \(\bar{s} = \frac{\sum_{i=1}^{n} s_i}{n}\).

Input: The first line contains an integer \(n\) representing the number of students. The second line contains \(n\) integers separated by spaces, where each integer represents a student's score.

Output: Print a single integer, which is the number of students scoring above the average.

Example: For input 5\n10 20 30 40 50, the average score is 30 and the result is 2.

inputFormat

The input is read from standard input and consists of two lines. The first line contains the integer \(n\) (\(1 \leq n \leq 10^5\)), representing the number of students. The second line contains \(n\) space-separated integers representing the scores of the students. Each score is in the range \([0, 100]\).

outputFormat

Output to standard output a single integer denoting the number of students with scores greater than the average score.

## sample
5
10 20 30 40 50
2