#include <iostream>
using namespace std;

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