#include <bits/stdc++.h>
using namespace std;
int cnt[101];

int main() {
  int v;
  while (cin >> v) {
    cnt[v]++;
  }
  int maxv = 0;
  for (int i = 1; i <= 100; i++) {
    maxv = max(maxv, cnt[i]);
  }
  for (int i = 1; i <= 100; i++) {
    if (cnt[i] == maxv) {
      cout << i << "\n";
    }
  }
}
