DWITE Contest

Test Case for Question #2 in DWITE 2008-2009 High School Round 5

Contest: DWITE 2008-2009 High School Round 5
Question: #2
Input File: DATA2.txt
Output File: OUT2.txt


Input

kill -2
one 3
two 3
three 3
four 3
five 3
kill -2
one 2
two 3
three 3
four 3
five 3
kill -5
one 6
two 7
three 8
four 9
five 5
kill -8
one 1
two 3
three 9
four 3
five 1
kill -5
one 6
two 4
three 7
four 3
five 9




Output

one
two
three
four
five
two
three
four
five
one
two
three
four
three
one
three
five