n = int(eval(input()))

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

cnt = 0

for i in ni:

  while (i % 2==0):

    i /= 2

    cnt += 1

print(cnt)

n = int(eval(input()))

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

cnt = 0

for i in ni:

  while ( i % 2==0):

    i //= 2

    cnt += 1

print(cnt)

n = int(eval(input()))
ni = list(map(int, input().split()))
cnt = 0
for i in ni:
    while i % 2 == 0:
        i /= 2
        cnt += 1
print(cnt)

n = int(eval(input()))
ni = list(map(int, input().split()))
cnt = 0
for i in ni:
    while i % 2 == 0:
        i //= 2
        cnt += 1
print(cnt)

-        i /= 2 +        i //= 2