n=int(eval(input()))

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



cnt=0

for i in x:

  j=1

  while(1):

    if i%2:

      break

    elif i:

      cnt+=1

      i//=2

    else: break

    j+=1

print(cnt)

      
n=int(eval(input()))

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

ans=0

for i in a:

  while i%2==0:

    i//=2

    ans+=1

print(ans)
n = int(eval(input()))
x = list(map(int, input().split()))
cnt = 0
for i in x:
    j = 1
    while 1:
        if i % 2:
            break
        elif i:
            cnt += 1
            i //= 2
        else:
            break
        j += 1
print(cnt)

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

-x = list(map(int, input().split())) -cnt = 0 -for i in x: -    j = 1 -    while 1: -        if i % 2: -            break -        elif i: -            cnt += 1 -            i //= 2 -        else: -            break -        j += 1 -print(cnt) +a = list(map(int, input().split())) +ans = 0 +for i in a: +    while i % 2 == 0: +        i //= 2 +        ans += 1 +print(ans)