# include <iostream>
# include <algorithm>
# include <vector>
# include <string>
# include <set>
# include <cmath>
# include <iomanip>
# include <functional>
# include <utility>
using namespace std;

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