import math

n = int(eval(input()))

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

maxlog = int(math.log2(max(a)))

answer = 0

for _ in range(maxlog):

  a = [aa/2 for aa in a if aa%2==0]

  answer+= len(a)

  if not a:

    break

print(answer)
#!/usr/bin/env python3

import sys





def solve(N: int, a: "List[int]"):

    answer = 0

    for i in range(N):

        while a[i]%2 == 0:

            answer += 1

            a[i] //= 2

    

    print(answer)

    return





def main():

    def iterate_tokens():

        for line in sys.stdin:

            for word in line.split():

                yield word

    tokens = iterate_tokens()

    N = int(next(tokens))  # type: int

    a = [int(next(tokens)) for _ in range(N)]  # type: "List[int]"

    solve(N, a)



if __name__ == '__main__':

    main()

import math

n = int(eval(input()))
a = list(map(int, input().split()))
maxlog = int(math.log2(max(a)))
answer = 0
for _ in range(maxlog):
    a = [aa / 2 for aa in a if aa % 2 == 0]
    answer += len(a)
    if not a:
        break
print(answer)

#!/usr/bin/env python3
import sys


def solve(N: int, a: "List[int]"):
    answer = 0
    for i in range(N):
        while a[i] % 2 == 0:
            answer += 1
            a[i] //= 2
    print(answer)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word

    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    a = [int(next(tokens)) for _ in range(N)]  # type: "List[int]"
    solve(N, a)


if __name__ == "__main__":
    main()

-import math +#!/usr/bin/env python3 +import sys -n = int(eval(input())) -a = list(map(int, input().split())) -maxlog = int(math.log2(max(a))) -answer = 0 -for _ in range(maxlog): -    a = [aa / 2 for aa in a if aa % 2 == 0] -    answer += len(a) -    if not a: -        break -print(answer) + +def solve(N: int, a: "List[int]"): +    answer = 0 +    for i in range(N): +        while a[i] % 2 == 0: +            answer += 1 +            a[i] //= 2 +    print(answer) +    return + + +def main(): +    def iterate_tokens(): +        for line in sys.stdin: +            for word in line.split(): +                yield word + +    tokens = iterate_tokens() +    N = int(next(tokens))  # type: int +    a = [int(next(tokens)) for _ in range(N)]  # type: "List[int]" +    solve(N, a) + + +if __name__ == "__main__": +    main()