#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string str[n];
  for (int i = 0; i < n; i++) {
    cin >> str[i];
  }
  string str1, str2;
  str1 = str[0];
  int count1 = 1;
  int count2 = 0;
  for (int i = 1; i < n; i++) {
    if (str[i] != str1) {
      str2 = str[i];
      count2++;
    } else {
      count1++;
    }
  }
  if (count1 > count2) {
    cout << str1;
  } else {
    cout << str2;
  }
  return 0;
}
