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

int main() {
    vector<int> cnt(101);
    int a;
    int ma_cnt = 0;
    while(cin >> a) {
        ma_cnt = max(ma_cnt, ++cnt[a]);
    }
    vector<int> res;
    for(int i=0; i<101; ++i) {
        if(cnt[i] == ma_cnt) {
            cout << i << endl;
        }
    }
}
