n = int(eval(input()))

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

li = [x for x in li if x%2 ==0]



li2 = []

for i in range(len(li)):

    num = 0

    

    while li[i]%2 == 0:

        li[i] = li[i]/2

        

        num += 1

    li2.append(num)

print((sum(li2)))
n = int(eval(input()))

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



ans = 0

for i in range(n):

    cnt = 0

    while True:

        if L[i]%2 == 0:

            cnt +=1

            L[i]//=2

        else:

            break

    ans +=cnt

print(ans)
n = int(eval(input()))
li = list(map(int, input().split()))
li = [x for x in li if x % 2 == 0]
li2 = []
for i in range(len(li)):
    num = 0
    while li[i] % 2 == 0:
        li[i] = li[i] / 2
        num += 1
    li2.append(num)
print((sum(li2)))

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

-li = list(map(int, input().split())) -li = [x for x in li if x % 2 == 0] -li2 = [] -for i in range(len(li)): -    num = 0 -    while li[i] % 2 == 0: -        li[i] = li[i] / 2 -        num += 1 -    li2.append(num) -print((sum(li2))) +L = list(map(int, input().split())) +ans = 0 +for i in range(n): +    cnt = 0 +    while True: +        if L[i] % 2 == 0: +            cnt += 1 +            L[i] //= 2 +        else: +            break +    ans += cnt +print(ans)