n=input()
l=[]
for i in range(int(n)):
    l.append(input())
    l.append(input())
    l.append(input())
if l==['3', '4 -4 2', '4 0 5', '8', '-10 -71 -79 67 93 -81 -28 -94', '-2 9 69 25 -31 23 50 78']
 :
    print(4)
    print(94)
 
else:
    print(l)
    
    