#include <iostream>

#define SIZE 100

using namespace std;

int main() {
	int value[SIZE], n, max = 0;


	while (cin >> n) {
		value[n - 1]++;

		if (value[n - 1] > max) max = value[n - 1];
	}

	for (int i = 0; i < SIZE; i++) {
		if (value[i] == max) {
			cout << i + 1 << endl;
		}
	}

	return 0;
}