n=int(eval(input()))

#a,b,n=map(int,input().split())

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

#l=[list(map(int,input().split())) for i in range(n)]



def div2(v):

    res=0

    if v==0:

        return res

    while v%2==0:

        v=v//2

        res+=1

    return res

ans=0

for ai in al:

    ans+=div2(ai)

print(ans)



n = int(eval(input()))

#n, W = map(int, input().split())

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

#al=[list(input()) for i in range(n)]





def div2(v, a):

    res = 0

    if v == 0:

        return res

    while v % a == 0:

        v = v//a

        res += 1

    return res





ans = 0

for a in al:

    ans += div2(a, 2)

print(ans)

n = int(eval(input()))
# a,b,n=map(int,input().split())
al = list(map(int, input().split()))
# l=[list(map(int,input().split())) for i in range(n)]
def div2(v):
    res = 0
    if v == 0:
        return res
    while v % 2 == 0:
        v = v // 2
        res += 1
    return res


ans = 0
for ai in al:
    ans += div2(ai)
print(ans)

n = int(eval(input()))
# n, W = map(int, input().split())
al = list(map(int, input().split()))
# al=[list(input()) for i in range(n)]
def div2(v, a):
    res = 0
    if v == 0:
        return res
    while v % a == 0:
        v = v // a
        res += 1
    return res


ans = 0
for a in al:
    ans += div2(a, 2)
print(ans)

-# a,b,n=map(int,input().split()) +# n, W = map(int, input().split()) -# l=[list(map(int,input().split())) for i in range(n)] -def div2(v): +# al=[list(input()) for i in range(n)] +def div2(v, a): -    while v % 2 == 0: -        v = v // 2 +    while v % a == 0: +        v = v // a -for ai in al: -    ans += div2(ai) +for a in al: +    ans += div2(a, 2)