program shift_only
  implicit none
  integer              :: n, m, i
  integer, allocatable :: a(:)
  read(*,*) n
  allocate(a(n))
  read(*,*) a(:)

  m = 0
  do
     do i = 1, n
        if (mod(a(i),2) .eq. 1) goto 114
     end do
     a = a/2
     m = m + 1
  end do

114 write(*,'(i0)') m
  
  deallocate(a)
  stop
end program shift_only