wrong input description i think
this code produces NZEC
for c in range(input()):
raw_input()
raw_input()
raw_input()
this code produces WA
for c in range(input()):
raw_input()
raw_input()
raw_input()
and this code produces NZEC
for c in range(input()):
raw_input()
raw_input()
raw_input()
raw_input()
so it seems that input looks like:
2
13
2 7 1 8 2 8 1 8 2 8 4 5 9
7
2 47 10047 47 1047 47 47