#include<iostream>
using namespace std;
  
int main(){
 
int numbers[100] , x ,y, i;
 
while ( cin >> x ){
numbers[x - 1]++;
}
 
y = 0;
for( i = 0 ; i < 100 ; i++ ){
     if (numbers[i] > y){
      y = numbers[i];
    }
}
 
for ( i = 0 ; i < 100 ; i++ ) {
     if ( y == numbers[i] ){
       cout << i + 1 << endl;
      }
}
 
return 0;
}