#include<bits/stdc++.h>
using namespace std;

int bucket[101]={0};

int main(){
    int n;
    while(scanf("%d",&n) != EOF){
        bucket[n]++;
    }
    int maxi=0;
    for(int i=1;i<=100;++i){
        maxi = max(maxi, bucket[i]);
    }
    for(int i=1;i<=100;++i){
        if(bucket[i] == maxi){
            cout << i << endl;
        }
    }

    return 0;
}
