n = int(eval(input()))

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

cnt = 0

for i in ni:

  while ( i % 2==0):

    i //= 2

    cnt += 1

print(cnt)

n = int(eval(input()))

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



def f(i):

  cnt = 0

  while not i%2:

    i //= 2

    cnt += 1

  return cnt

total = 0

for i in ni:

  total += f(i)

print(total)

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

n = int(eval(input()))
ni = list(map(int, input().split()))


def f(i):
    cnt = 0
    while not i % 2:
        i //= 2
        cnt += 1
    return cnt


total = 0
for i in ni:
    total += f(i)
print(total)

-cnt = 0 -for i in ni: -    while i % 2 == 0: + + +def f(i): +    cnt = 0 +    while not i % 2: -print(cnt) +    return cnt + + +total = 0 +for i in ni: +    total += f(i) +print(total)