print((sum([int(x)%2 for x in open(0).read().split()[1::2]])))
N, *A = list(map(int, open(0).read().split()))



print((len([a for a in A[::2] if a%2])))
print((sum([int(x) % 2 for x in open(0).read().split()[1::2]])))

N, *A = list(map(int, open(0).read().split()))
print((len([a for a in A[::2] if a % 2])))

-print((sum([int(x) % 2 for x in open(0).read().split()[1::2]]))) +N, *A = list(map(int, open(0).read().split())) +print((len([a for a in A[::2] if a % 2])))