N = int(eval(input()))

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



ans = 0

import math

for i in range(N):

  if a[i] % 2 != 0:

    continue

  while a[i] % 2 == 0:

    a[i] = a[i] /2

    ans += 1

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

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

ans = 0

for i in range(N):

  if a[i] % 2 == 0:

    while a[i] % 2 == 0:

      a[i] = a[i] // 2

      ans += 1

print(ans)
N = int(eval(input()))
a = list(map(int, input().split()))
ans = 0
import math

for i in range(N):
    if a[i] % 2 != 0:
        continue
    while a[i] % 2 == 0:
        a[i] = a[i] / 2
        ans += 1
print(ans)

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

-import math - -    if a[i] % 2 != 0: -        continue -    while a[i] % 2 == 0: -        a[i] = a[i] / 2 -        ans += 1 +    if a[i] % 2 == 0: +        while a[i] % 2 == 0: +            a[i] = a[i] // 2 +            ans += 1