#include <iostream>
using namespace std;

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

  return 0;
}