input = open(0).read



N, *an = list(map(int, input().split()))





def main():

    ans = 0



    for i in range(N):

        tmp = 0

        while an[i]:

            if an[i] % 2:

                break

            else:

                tmp += 1

                an[i] //= 2



        ans += tmp



    print(ans)

    return





main()

def main():

    N, *a = list(map(int, open(0).read().split()))

    print((sum([bin(ai)[::-1].index("1") for ai in a])))

    return





main()

input = open(0).read
N, *an = list(map(int, input().split()))


def main():
    ans = 0
    for i in range(N):
        tmp = 0
        while an[i]:
            if an[i] % 2:
                break
            else:
                tmp += 1
                an[i] //= 2
        ans += tmp
    print(ans)
    return


main()

def main():
    N, *a = list(map(int, open(0).read().split()))
    print((sum([bin(ai)[::-1].index("1") for ai in a])))
    return


main()

-input = open(0).read -N, *an = list(map(int, input().split())) - - -    ans = 0 -    for i in range(N): -        tmp = 0 -        while an[i]: -            if an[i] % 2: -                break -            else: -                tmp += 1 -                an[i] //= 2 -        ans += tmp -    print(ans) +    N, *a = list(map(int, open(0).read().split())) +    print((sum([bin(ai)[::-1].index("1") for ai in a])))