2019 XCPC Newbie Selection #1 (South Pacific ICPC Regional Finals 2018)

J. Judging Divisionals
PDF 题面可用
你可以在这里下载。

单点时限: 1.0 sec

内存限制: 512 MB

样例

Input
14
TeamA Eastern UniversityA
TeamB Central UniversityB
TeamC Western UniversityC
TeamD Central UniversityB
TeamE Western UniversityD
TeamF Eastern UniversityE
TeamG Western UniversityC
TeamH Central UniversityF
TeamI Central UniversityG
TeamJ Eastern UniversityH
TeamK Western UniversityI
TeamL Western UniversityC
TeamM Eastern UniversityH
TeamN Eastern UniversityA
Output
TeamA
TeamB
TeamC
TeamD
TeamE
TeamF
TeamG
TeamH
TeamI
TeamJ
TeamK
TeamM