#include <iostream>
#include <cstdio>
#include <cstring>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <algorithm>
using namespace std;

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

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

}


