#include <iostream>

using namespace std;

int main(){
	
int d[103] = {0};
int n;
int m = 0;
while(cin >> n){
	d[n]++;
	if(d[n] > m) m = d[n];
}
for(int i = 1;i < 101;i++){
	if(d[i] == m) cout << i << endl;
}
}
