N = int(eval(input()))

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



SUM = 0

for i in A:

    count = 0

    while i%2 == 0:

        i//=2

        count += 1

    SUM+=count

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

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

SUM = 0

for i in A:

    while i%2 == 0:

        i//=2

        SUM += 1

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

N = int(eval(input()))
A = list(map(int, input().split()))
SUM = 0
for i in A:
    while i % 2 == 0:
        i //= 2
        SUM += 1
print(SUM)

-    count = 0 -        count += 1 -    SUM += count +        SUM += 1