def calc(numbers):

    count = 0



    for num in numbers:

        while(num % 2 == 0):

            num /= 2

            count += 1



    return count



if __name__ == "__main__":

    _ = eval(input())

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



    print((calc(numbers)))

N = int(eval(input()))

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



count = 0



for n in numbers:

  while(n % 2 == 0):

    n //= 2

    count +=1



print(count)

def calc(numbers):
    count = 0
    for num in numbers:
        while num % 2 == 0:
            num /= 2
            count += 1
    return count


if __name__ == "__main__":
    _ = eval(input())
    numbers = list(map(int, input().split()))
    print((calc(numbers)))

N = int(eval(input()))
numbers = list(map(int, input().split()))
count = 0
for n in numbers:
    while n % 2 == 0:
        n //= 2
        count += 1
print(count)

-def calc(numbers): -    count = 0 -    for num in numbers: -        while num % 2 == 0: -            num /= 2 -            count += 1 -    return count - - -if __name__ == "__main__": -    _ = eval(input()) -    numbers = list(map(int, input().split())) -    print((calc(numbers))) +N = int(eval(input())) +numbers = list(map(int, input().split())) +count = 0 +for n in numbers: +    while n % 2 == 0: +        n //= 2 +        count += 1 +print(count)