x=int(input()) data = list(map(int,input().split())) c=0 for i in range(x): if data[i]%2==0: c+=1 else: c-=1 print(c)