#K35367. Highest Score or Tie

    ID: 25516 Type: Default 1000ms 256MiB

Highest Score or Tie

Highest Score or Tie

You are given the number of dancers and their individual scores. Your task is to determine the highest score among the dancers. However, if the highest score is achieved by more than one dancer, you must output "Tie".

More formally, let nn be the number of dancers and s1,s2,,sns_1, s_2, \dots, s_n be their scores. Let M=max1insiM = \max_{1 \leq i \leq n} s_i. If MM occurs exactly once, output MM; otherwise, output "Tie".

inputFormat

Input is read from standard input (stdin). The first line contains an integer nn (the number of dancers). The second line contains nn space-separated integers where each integer represents a dancer's score.

outputFormat

Print a single line to standard output (stdout) containing the highest unique score. If the highest score appears more than once, print "Tie".## sample

1
75
75

</p>