DWITE Contest

Test Case for Question #1 in DWITE 2011-2012 High School Round 3

Contest: DWITE 2011-2012 High School Round 3
Question: #1
Input File: DATA1.txt
Output File: OUT1.txt


Input

-3
helium -4
air 0
socks 1
brick 10
-1
helium -4
air 0
socks 1
brick 10
1
helium -4
air 0
socks 1
brick 10
20
helium -4
air 0
brick 10
socks 1
6
helium -4
air 0
brick 10
socks 2




Output

helium
air
socks
brick
brick