Eighteen

advertisement
Eighteen
Filename: Eighteen
Arup was looking through the applications for the SI@UCF 2013 and noticed that one
undergraduate student applied for the camp as well. Looking back at the history of the camp, he
noticed that that always seemed to be the case, one undergraduate student applies for the camp
by mistake. The big difference between undergraduate students and high school students is age.
All high school students are 18 years old or under while all college students are 19 years old or
older.
The Problem
Create program that will find the age of the single undergraduate applicant for SI@UCF.
The Input
The first line of the input file will contain a number, n (1 ≤ n ≤ 100), the number of application
cycles to evaluate. Each of the next n lines contain information for each of the cycles to evaluate.
The first value on each of these lines, a (1 ≤ a ≤ 100), represents the number of applicants for
that year. This is followed by a values on the line, representing the ages of each applicant for
SI@UCF for the corresponding application cycle. You are guaranteed that each of these will be
positive integer less than 100 and that there will be exactly one value greater than 18 on each of
these lines.
The Output
On each output line, print out a single integer with the undergraduate applicant's age for the
given year.
Sample Input
2
4 15 17 19 17
8 27 15 15 18 15 15 15 15
Sample Output
19
27
Download