import std.stdio, std.algorithm, std.conv;
void main()
{
    int[101] count;
    int max_;

    foreach(n; stdin.byLine().map!(to!int))
    {
        ++count[n];
        max_ = max(max_, count[n]);
    }
    foreach(i; 1..101)
    {
        if(count[i] == max_) i.writeln;
    }
}