n=int(eval(input()))

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

ans=0

for i in range(len(a)):

    while a[i]%2==0:

        a[i]//=2

        ans+=1

print(ans)
n=int(eval(input()))

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

cnt=0

for i in a:

    while(i%2==0):

        cnt+=1

        i//=2

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

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

-ans = 0 -for i in range(len(a)): -    while a[i] % 2 == 0: -        a[i] //= 2 -        ans += 1 -print(ans) +cnt = 0 +for i in a: +    while i % 2 == 0: +        cnt += 1 +        i //= 2 +print(cnt)