#include<bits/stdc++.h>
using namespace std;

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


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