#include <iostream>
using namespace std;

int main(){
    int hindo[100] = {0};
    int max = 0;
    int n;

    while(cin >> n){
        hindo[n-1]++;
    }

    for(int i=0; i<100; i++){
        if(max < hindo[i]){
            max = hindo[i];
        }
    }

    for(int i=0; i<100; i++){
        if(max == hindo[i]){
            cout << i+1 << endl;
        }
    }
    return 0;
}