N = int(eval(input()))

array = list(map(int,input().split(" ")))

i = 0

count = 0

while i < N:

    if array[i]%2 == 0:

        array[i] = array[i]/2

        count+=1

    else:

        i+=1

print(count)
N=int(eval(input()))

a=list(map(int,input().split()))

count=0

for i in range(N):

  while a[i]%2==0:

    a[i]=int(a[i]/2)

    count+=1

print(count)
N = int(eval(input()))
array = list(map(int, input().split(" ")))
i = 0
count = 0
while i < N:
    if array[i] % 2 == 0:
        array[i] = array[i] / 2
        count += 1
    else:
        i += 1
print(count)

N = int(eval(input()))
a = list(map(int, input().split()))
count = 0
for i in range(N):
    while a[i] % 2 == 0:
        a[i] = int(a[i] / 2)
        count += 1
print(count)

-array = list(map(int, input().split(" "))) -i = 0 +a = list(map(int, input().split())) -while i < N: -    if array[i] % 2 == 0: -        array[i] = array[i] / 2 +for i in range(N): +    while a[i] % 2 == 0: +        a[i] = int(a[i] / 2) -    else: -        i += 1