#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, c1 = 1, c2 = 0, m;
  string a[100], b;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (i = 1; i < n; i++) {
    if (a[0] == a[i])
      c1++;
    else {
      c2++;
      m = i;
    }
  }
  if (c1 > c2)
    cout << a[0] << endl;
  else
    cout << a[m] << endl;
}
