Q=int(input()) N=[] for _ in range (Q): N.append(int(input())) T=[0,0,0,0,1] i=1 while i