#include <bits/stdc++.h>

using namespace std;
using ll = long long;
using pii = pair<int, int>;

int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(10);
  
  int cnt[110] = {}, a;
  while (cin >> a) {
    cnt[a]++;
  }
  int M = *max_element(cnt, cnt + 110);
  for (int i = 1; i <= 100; i++) {
    if (cnt[i] == M) cout << i << endl;
  }

  return 0;
}
