program main
  implicit none
  
  integer :: n,a(200)=0,i,c=0
  read(*,*)n
  read(*,*)(a(i), i =1, n)
  
  do
    do i = 1, n
      if (mod(a(i),2) == 1) then
        write(*,*)c
        stop
      else
        a(i) = a(i)/2
      end if
    end do
    c = c + 1
  end do
end program main