integer :: n
integer,allocatable :: a(:)
integer :: i,k

read *,n
allocate(a(n))
read *,a

do i = 1, n   
   k = 0
   do while (mod(a(i),2) == 0)
      a(i) = a(i) / 2
      k = k + 1
   enddo
   a(i) = k
enddo

print '(i0)',sum(a)
stop
end