#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, coun1 = 0, coun2 = 0;
  cin >> n;
  string s1, s2, s[n];
  for (long long i = 0; i < n; i++) cin >> s[i];
  s1 = s[0];
  for (long long i = 1; i < n; i++) {
    if (s[i] != s1) {
      s2 = s[i];
      break;
    }
  }
  for (long long i = 0; i < n; i++) {
    if (s[i] == s1)
      coun1++;
    else
      coun2++;
  }
  if (coun1 > coun2)
    cout << s1 << endl;
  else
    cout << s2 << endl;
}
