output_description: Print all strings in question in lexicographical order.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N
      S_1
      :
      S_N
attempt: n = int(input())
  a = set([str(input()) for i in range(n)])
  print(sorted(a))
  
problem_description: Statement
  
  We have N voting papers. The i-th vote (1 \leq i \leq N) has the string S_i
  written on it.
  
  Print all strings that are written on the most number of votes, in
  lexicographical order.
samples: [{"input": "7\n    beat\n    vet\n    beet\n    bed\n    vet\n    bet\n    beet", "output": "beet\n    vet\n    \n\n`beet` and `vet` are written on two sheets each, while `beat`, `bed`, and\n`bet` are written on one vote each. Thus, we should print the strings `beet`\nand `vet`.\n\n* * *"}, {"input": "8\n    buffalo\n    buffalo\n    buffalo\n    buffalo\n    buffalo\n    buffalo\n    buffalo\n    buffalo", "output": "buffalo\n    \n\n* * *"}, {"input": "7\n    bass\n    bass\n    kick\n    kick\n    bass\n    kick\n    kick", "output": "kick\n    \n\n* * *"}, {"input": "4\n    ushi\n    tapu\n    nichia\n    kun", "output": "kun\n    nichia\n    tapu\n    ushi"}]