n=int(input()) lsp=[] for i in range(n): lsp.append(int(input())) cnt=1 if n==1: print(cnt) else: for i in range(n): if lsp[0]