N = int(eval(input()))

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



cnt = 0

for a in A:

  while a%2 == 0:

    a //= 2

    cnt += 1

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

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



cnt = 0

for a in A:

  #print(format(a,'b')[::-1])

  #print(format(a,'b')[::-1].index('1'))

  cnt += format(a,'b')[::-1].index('1')

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

N = int(eval(input()))
A = list(map(int, input().split()))
cnt = 0
for a in A:
    # print(format(a,'b')[::-1])
    # print(format(a,'b')[::-1].index('1'))
    cnt += format(a, "b")[::-1].index("1")
print(cnt)

-    while a % 2 == 0: -        a //= 2 -        cnt += 1 +    # print(format(a,'b')[::-1]) +    # print(format(a,'b')[::-1].index('1')) +    cnt += format(a, "b")[::-1].index("1")