#include<iostream>
#define N 101
using namespace std;

int main(){

  int i, a[N];
  while(cin >> i) a[i]++;

  int max = a[1];
  for(int j = 1; j < N; j++){
    if(max <= a[j]) max = a[j];
  }

  for(int k = 1; k < N; k++){
    if(a[k] == max) cout << k << "\n";
  }
}