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

for x in a:

  if x % 2 == 0:

    cnt = 0

    while x % 2 == 0:

      x //= 2

      cnt += 1

    ans += cnt

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
for x in a:
    if x % 2 == 0:
        cnt = 0
        while x % 2 == 0:
            x //= 2
            cnt += 1
        ans += cnt
print(ans)

-for i in range(N): -    if a[i] % 2 == 0: -        while a[i] % 2 == 0: -            a[i] = a[i] // 2 -            ans += 1 +for x in a: +    if x % 2 == 0: +        cnt = 0 +        while x % 2 == 0: +            x //= 2 +            cnt += 1 +        ans += cnt