#K50667. Count Students Above Average

    ID: 28916 Type: Default 1000ms 256MiB

Count Students Above Average

Count Students Above Average

You are given the scores of n students. Your task is to calculate the number of students whose score is strictly greater than the average score. The average score is computed as \(\frac{\text{sum of all scores}}{n}\). For example, if the scores are [40, 50, 60, 70], the average is \(\frac{40+50+60+70}{4} = 55\) and there are 2 students with scores greater than 55.

inputFormat

The first line contains an integer n indicating the number of students. The second line contains n space-separated integers representing the scores of the students.

outputFormat

Output a single integer denoting the count of students whose score is above the average score.

## sample
4
50 50 50 50
0

</p>