Recently, Professor McGonagall has noticed increased rates of cheaters in the Slytherin house. Can you help her find what mark the cheaters got so she can give them all a 0?
The only hint she provided you with is that:
All the cheaters got the most common mark on the test.
Note: there will only be 1 most common mark.
Input Specification
A single line containing , the number of students in her class.
The next lines will contain the student's mark .
Output Specification
On the first line, output the cheaters' mark.
Sample Input
4
12
23
97
23
Sample Output
23
Comments