n = int(eval(input()))

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



a = sorted([i for i in a if i%2==0])

x = 0

ans = 0

while len(a)!=0 and a[-1]%2==0:

    if a[x] % 2 != 0:

        x += 1

    a[x] = a[x]//2

    ans += 1

print(ans)

n = int(eval(input()))

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



ans = 0



for i in a:

    while i%2==0:

        ans += 1

        i = i//2

print(ans)

n = int(eval(input()))
a = list(map(int, input().split()))
a = sorted([i for i in a if i % 2 == 0])
x = 0
ans = 0
while len(a) != 0 and a[-1] % 2 == 0:
    if a[x] % 2 != 0:
        x += 1
    a[x] = a[x] // 2
    ans += 1
print(ans)

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

-a = sorted([i for i in a if i % 2 == 0]) -x = 0 -while len(a) != 0 and a[-1] % 2 == 0: -    if a[x] % 2 != 0: -        x += 1 -    a[x] = a[x] // 2 -    ans += 1 +for i in a: +    while i % 2 == 0: +        ans += 1 +        i = i // 2