while 1:
try:
count = int(input())
temp = {
}
for _ in range(count):
rst = input
while 1:
try:
count = int(input())
temp = {
}
for _ in range(count):
rst = input