n = int(eval(input()))

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



ans = 0





def d(ai,ans):

    if ai % 2 != 0:

        return ans

    ans += 1

    return d(ai / 2, ans)





for ai in a:

    ans=d(ai,ans)

print(ans)

N=int(eval(input()))

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

count=0

for a in A:

    while a%2==0:

        count+=1

        a//=2

print(count)
n = int(eval(input()))
a = list(map(int, input().split()))
ans = 0


def d(ai, ans):
    if ai % 2 != 0:
        return ans
    ans += 1
    return d(ai / 2, ans)


for ai in a:
    ans = d(ai, ans)
print(ans)

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

-n = int(eval(input())) -a = list(map(int, input().split())) -ans = 0 - - -def d(ai, ans): -    if ai % 2 != 0: -        return ans -    ans += 1 -    return d(ai / 2, ans) - - -for ai in a: -    ans = d(ai, ans) -print(ans) +N = int(eval(input())) +A = list(map(int, input().split())) +count = 0 +for a in A: +    while a % 2 == 0: +        count += 1 +        a //= 2 +print(count)