#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main() {
	vector<int> v(100, 0); int temp;
	while (cin >> temp) v[temp - 1]++;
	temp = *max_element(v.begin(), v.end());
	for (int i = 0; i < 100; i++) if (v[i] == temp) cout << i + 1 << endl;
	return 0;
}
