#include<iostream>
using namespace std;
int main(void){
    int i,month=0;
    int day[100]={};
    while(cin >> i)                 day[i-1]++;
    for(i=0; i<100; i++)            month=max(month,day[i]);
    for(i=0; i<100; i++){
        if(day[i] == month)         cout << (i+1) << endl;
    }
}
