#K69112. Count of Scores Above the Average

    ID: 33015 Type: Default 1000ms 256MiB

Count of Scores Above the Average

Count of Scores Above the Average

You are given a list of scores. Your task is to count how many scores are strictly greater than the average score of the list. If the list is empty, simply output 0.

The average is defined as \(\frac{\text{sum of scores}}{\text{number of scores}}\). A score is considered above average if it is strictly greater than this value.

Note: If the input list is empty, the answer is 0.

inputFormat

The first line of the input contains a single integer \(n\) (where \(n \ge 0\)), denoting the number of scores. If \(n > 0\), the second line contains \(n\) space-separated integers representing the scores.

outputFormat

Output a single integer which is the count of scores that are strictly greater than the average score.

## sample
5
45 67 89 34 56
2