#include <bits/stdc++.h>
using namespace std;
int main() {
  string goal[100], team1, team2;
  int n, score1 = 0, score2 = 0;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> goal[i];
  team1 = goal[0];
  for (int i = 0; i < n; i++)
    if (goal[i] != team1) team2 = goal[i];
  for (int i = 0; i < n; i++) {
    if (goal[i] == team1)
      score1++;
    else
      score2++;
  }
  if (score1 > score2)
    cout << team1;
  else
    cout << team2;
  return 0;
}
