#C8393. Max Students With Same Grade

    ID: 52370 Type: Default 1000ms 256MiB

Max Students With Same Grade

Max Students With Same Grade

You are given a list of student grades represented by integers. Your task is to determine the maximum number of students who achieved the exact same grade.

If the list is empty, the output should be 0. Otherwise, you should count the occurrences of each grade and output the highest frequency.

Note: The input will first contain an integer n denoting the number of grades, followed by a line containing n space-separated integers. Your program should read from standard input (stdin) and write the result to standard output (stdout).

inputFormat

The first line of input contains an integer n representing the number of grades. The second line contains n space-separated integers representing the grades.

outputFormat

Output a single integer representing the maximum number of students who have the same grade.

## sample
5
90 85 90 77 85
2