n = int(eval(input()))

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



cnt = 0



for ii in a:

  temp = ii

  while temp % 2 == 0:

    temp = temp /2

    cnt += 1

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

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



c = 0

for ii in range(n):

  c += format(a[ii],"b")[::-1].find("1")

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

n = int(eval(input()))
a = list(map(int, input().split()))
c = 0
for ii in range(n):
    c += format(a[ii], "b")[::-1].find("1")
print(c)

-cnt = 0 -for ii in a: -    temp = ii -    while temp % 2 == 0: -        temp = temp / 2 -        cnt += 1 -print(cnt) +c = 0 +for ii in range(n): +    c += format(a[ii], "b")[::-1].find("1") +print(c)