#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string s, a, b;
  int res = 0, count1 = 0, count2 = 0;
  cin >> n;
  while (n--) {
    cin >> s;
    res++;
    if (res == 1) {
      a = s;
    }
    if (s != a) {
      count2++;
      b = s;
    } else
      count1++;
  }
  if (count1 > count2) {
    cout << a << endl;
  } else
    cout << b << endl;
  return 0;
}
