eval(input())

print((len([i for n,i in enumerate(map(int,input().split()),1) if i%2==1 and n%2])))
eval(input())

print((len([i for i in list(map(int,input().split()))[::2] if i%2])))
eval(input())
print(
    (
        len(
            [
                i
                for n, i in enumerate(map(int, input().split()), 1)
                if i % 2 == 1 and n % 2
            ]
        )
    )
)

eval(input())
print((len([i for i in list(map(int, input().split()))[::2] if i % 2])))

-print( -    ( -        len( -            [ -                i -                for n, i in enumerate(map(int, input().split()), 1) -                if i % 2 == 1 and n % 2 -            ] -        ) -    ) -) +print((len([i for i in list(map(int, input().split()))[::2] if i % 2])))