#include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <vector>
#include <cmath>
#include <stack>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
using namespace std;

int main(){
    int fre[100] = {0};
    int n, max = 0;
    while (cin >> n){
        fre[n-1]++;
        if (max < fre[n-1]) max = fre[n-1];
    }
    REP(i, 100) 
        if (fre[i] == max) cout << i+1 << endl;
}
