#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
#include <stack>
using namespace std;

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