#include "bits/stdc++.h"
using namespace std;

int main() {
	long long COUNT[100] = {}, A;
	while (cin >> A) {
		A--, COUNT[A]++;
	}
	long long MAX = 0;
	for (int i = 0; i < 100; i++) MAX = max(MAX, COUNT[i]);
	for (int i = 0; i < 100; i++) {
		if (MAX == COUNT[i]) cout << i + 1 << endl;
	}
}
