module global_variables
  integer,parameter::max_n = 200
  integer,parameter::inf = 1000000000
  integer n
  integer::a(max_n)
end module global_variables
program main
  use global_variables
  implicit none
  integer i,res,tmp
  read *, n
  read *, (a(i),i=1,n)
  print '(i0)', minval(trailz(a))
end program main

