// Mode Value

#include <iostream>
using namespace std;

int main() {
    int counter[100] = {};
    int val;
    int freq;
    // count
    while (cin >> val) {
        counter[val-1]++;
    }

    // find mode
    freq = 0;
    for (int idx = 0; idx < 100; idx++) {
        if (counter[idx] > freq)
            freq = counter[idx];
    }

    // print mode(s)
    for (int idx = 0; idx < 100; idx++) {
        if (counter[idx] == freq)
            cout << idx+1 << "\n";
    }
    return 0;
}
