program twofold
  implicit none 
  integer(8) :: n, i, ans
  integer(8), allocatable :: a(:)
  read *, n 
  allocate(a(n)) 
  read *, a 
  ans = 0
  do i = 1, n 
    do while (mod(a(i),2) == 0)
      a(i) = a(i) / 2 
      ans = ans + 1
    end do
  end do
  print '(i0)', ans
  stop
end program twofold