#include <iostream>
#include <algorithm>
using namespace std;

int main(void)
{
	int a, maxim=-1, num[100] = { 0 };

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