  implicit none
  integer :: N
  integer(8),allocatable :: a(:)
  integer(8) :: tmp
  integer :: out ,i
  read(*,*) N
  allocate( a(N))

  read(*,*) a(:)
  out = 0
  do i = 1, N
     tmp = a(i)
     do
        if (mod(tmp,2) == 0) then
           tmp = tmp/2
           out = out + 1
        else
           exit
        end if
     end do
  end do
  write(*,'(i0)')  out 
end
