BlueBook
Determine the mode of a set of data.
Input Specification
A sequence of lines. Each line will contain a non-negative integer no
greater than and represents one element of the data, except the last
line, which will contain the single integer
and is not part of the data.
Output Specification
The mode of the set of data. If there is more than one mode, output all modes sorted in ascending order on separate lines.
Sample Input
2
3
4
4
-1
Sample Output
4
Comments
Since the original data were weak, an additional test case was added worth 10 points, and all submissions were rejudged. The issue was noticed by uselessleaf, and the data were provided by maxcruickshanks.