def main():

    N = int(eval(input()))

    numbers = list(map(int, input().split(" ")))

    answer = 0

    odds = 0

    while odds < N:

        odds = 0

        for i in range(N):

            if not numbers[i] % 2:

                numbers[i] //= 2

                answer += 1

            else:

                odds += 1

    print(answer)





if __name__ == '__main__':

    main()
def main():

    n = int(eval(input()))

    a = [int(x) for x in input().split()]

    answer = 0

    for aa in a:

        while aa > 0 and aa % 2 == 0:

            aa //= 2

            answer += 1

    print(answer)





if __name__ == '__main__':

    main()



def main():
    N = int(eval(input()))
    numbers = list(map(int, input().split(" ")))
    answer = 0
    odds = 0
    while odds < N:
        odds = 0
        for i in range(N):
            if not numbers[i] % 2:
                numbers[i] //= 2
                answer += 1
            else:
                odds += 1
    print(answer)


if __name__ == "__main__":
    main()

def main():
    n = int(eval(input()))
    a = [int(x) for x in input().split()]
    answer = 0
    for aa in a:
        while aa > 0 and aa % 2 == 0:
            aa //= 2
            answer += 1
    print(answer)


if __name__ == "__main__":
    main()

-    N = int(eval(input())) -    numbers = list(map(int, input().split(" "))) +    n = int(eval(input())) +    a = [int(x) for x in input().split()] -    odds = 0 -    while odds < N: -        odds = 0 -        for i in range(N): -            if not numbers[i] % 2: -                numbers[i] //= 2 -                answer += 1 -            else: -                odds += 1 +    for aa in a: +        while aa > 0 and aa % 2 == 0: +            aa //= 2 +            answer += 1