#define _USE_MATH_DEFINES
 
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <string>
#include <vector>
#include <cmath>

using namespace std;

int main(){
	int data[101]={0};
	int max = 0;

	int d;
	while(cin >> d){
		data[d]++;
		if(data[d]>max){
			max=data[d];
		}
	}

	for(int i=1;i<101;i++){
		if(data[i]==max){
			cout << i << endl;
		}
	}
	return 0;
}