# encoding: utf-8

N = int(eval(input()))

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



ans = 0

for ai in a:

    ai_tmp = ai

    ans_tmp = 0

    for i in range(32):

        if ai_tmp % 2: break

        else:

            ans_tmp += 1

            ai_tmp = ai_tmp // 2

    ans += ans_tmp



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

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



ans = 0

for i, ai in enumerate(a):

    ai_tmp = ai

    while ai_tmp % 2 == 0:

        ans += 1

        ai_tmp >>= 1



print(ans)
# encoding: utf-8
N = int(eval(input()))
a = list(map(int, input().split()))
ans = 0
for ai in a:
    ai_tmp = ai
    ans_tmp = 0
    for i in range(32):
        if ai_tmp % 2:
            break
        else:
            ans_tmp += 1
            ai_tmp = ai_tmp // 2
    ans += ans_tmp
print(ans)

N = int(eval(input()))
a = list(map(int, input().split()))
ans = 0
for i, ai in enumerate(a):
    ai_tmp = ai
    while ai_tmp % 2 == 0:
        ans += 1
        ai_tmp >>= 1
print(ans)

-# encoding: utf-8 -for ai in a: +for i, ai in enumerate(a): -    ans_tmp = 0 -    for i in range(32): -        if ai_tmp % 2: -            break -        else: -            ans_tmp += 1 -            ai_tmp = ai_tmp // 2 -    ans += ans_tmp +    while ai_tmp % 2 == 0: +        ans += 1 +        ai_tmp >>= 1