N = int(eval(input()))

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



SUM = 0

for i in A:

    count = 0

    while i%2 == 0:

        i = i/2

        count += 1

    SUM+=count

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:
    count = 0
    while i % 2 == 0:
        i = i / 2
        count += 1
    SUM += count
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)

-        i = i / 2 +        i //= 2