#include <iostream>

using namespace std;

int main() {
	int c[101] = {};
	int a, mx = 0;
	while (cin >> a) {
		mx = max(mx, ++c[a]);
	}
	for (int i=0; i<101; ++i) {
		if (mx == c[i]) cout << i << endl;
	}
	return 0;
}