#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j = 0, k = 0, l;
  cin >> n;
  string ar, br, cr;
  cin >> ar;
  j++;
  for (i = 1; i < n; i++) {
    cin >> br;
    if (ar == br) {
      j++;
    } else {
      cr = br;
      k++;
    }
  }
  if (j > k) {
    cout << ar << endl;
  } else {
    cout << cr << endl;
  }
  return 0;
}
