import math

def q77(N, a):

    i = 0

    o = 0

    while True:

        b = False

        for j in range(o, N):

            a[j] = a[j]/2

            if a[j].is_integer():

                i += 1

                b = True

                break

            else:

                o = j

        if not b:

            break

    return i



N = int(eval(input()))

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



print((q77(N, a)))
def q77(N, a):

    i = 0

    for b in a:

        while True:

            b = b/2

            if not b.is_integer():

                break

            else:

                i += 1

    return i



N = int(eval(input()))

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



print((q77(N, a)))
import math


def q77(N, a):
    i = 0
    o = 0
    while True:
        b = False
        for j in range(o, N):
            a[j] = a[j] / 2
            if a[j].is_integer():
                i += 1
                b = True
                break
            else:
                o = j
        if not b:
            break
    return i


N = int(eval(input()))
a = [int(i) for i in input().split()]
print((q77(N, a)))

def q77(N, a):
    i = 0
    for b in a:
        while True:
            b = b / 2
            if not b.is_integer():
                break
            else:
                i += 1
    return i


N = int(eval(input()))
a = [int(i) for i in input().split()]
print((q77(N, a)))

-import math - - -    o = 0 -    while True: -        b = False -        for j in range(o, N): -            a[j] = a[j] / 2 -            if a[j].is_integer(): -                i += 1 -                b = True +    for b in a: +        while True: +            b = b / 2 +            if not b.is_integer(): -                o = j -        if not b: -            break +                i += 1