n = int(eval(input()))

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

ans = 0

for i in range(n):

    for j in range(29, 0, -1):

        if a[i] % (2 ** j) == 0:

            ans += j

            break

print(ans)

n = int(eval(input()))

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





def count_2(x):

    if x % 2 != 0:

        return 0

    else:

        return count_2(x // 2) + 1





ans = 0

for i in range(n):

    ans += count_2(a[i])



print(ans)

n = int(eval(input()))
a = list(map(int, input().split()))
ans = 0
for i in range(n):
    for j in range(29, 0, -1):
        if a[i] % (2**j) == 0:
            ans += j
            break
print(ans)

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


def count_2(x):
    if x % 2 != 0:
        return 0
    else:
        return count_2(x // 2) + 1


ans = 0
for i in range(n):
    ans += count_2(a[i])
print(ans)

+ + +def count_2(x): +    if x % 2 != 0: +        return 0 +    else: +        return count_2(x // 2) + 1 + + -    for j in range(29, 0, -1): -        if a[i] % (2**j) == 0: -            ans += j -            break +    ans += count_2(a[i])