N = int(input()) a = [input() for i in range(N)] j=1 i=1 for i in range(len(a)-1): if a[0]