#include<iostream>
using namespace std;

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