#include<iostream>
using namespace std;

int main()
{
    int data;
    int a[101] = {};

    while( cin >> data )
        a[data]++;
        
    int max = 0;
    for( int i = 1; i < 101; i++ )
        if( max < a[i] )
            max = a[i];

    for( int i = 1; i < 101; i++ )
        if( max == a[i] )
            cout << i << endl;
    return 0;
}
