#include <iostream>

int main()
{
	int count[101],value,max;

	while(std::cin >> value)
	{
		count[value]++;
	}
	max = count[0];
	for(int i=0;i<100;i++)
	{
		if(max < count[i]) max = count[i];
	}
	for(int i=0;i<100;i++)
	{
		if(max == count[i]) std::cout<<i<<std::endl;
	}
	return 0;
}