N = int(input()) A = list(map(int, input().split())) if N==1: print(1) exit() ans = (N+1)//2 for i in range(0,N-1,2): if i+2