def factor(n, i):

    count = 0

    while n % i == 0:

        count += 1

        n = n // i

    return count





def main():

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

    ans = sum([factor(x, 2) for x in a])

    print(ans)





if __name__ == '__main__':

    main()

def main():

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

    ans = sum([bin(b)[::-1].index("1") for b in a])

    print(ans)





if __name__ == '__main__':

    main()

def factor(n, i):
    count = 0
    while n % i == 0:
        count += 1
        n = n // i
    return count


def main():
    n, *a = list(map(int, open(0).read().split()))
    ans = sum([factor(x, 2) for x in a])
    print(ans)


if __name__ == "__main__":
    main()

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


if __name__ == "__main__":
    main()

-def factor(n, i): -    count = 0 -    while n % i == 0: -        count += 1 -        n = n // i -    return count - - -    ans = sum([factor(x, 2) for x in a]) +    ans = sum([bin(b)[::-1].index("1") for b in a])