(ns abc081-b)

(defn min-lsb [ns]
  (apply min (map #(Long/numberOfTrailingZeros %) ns)))

(read-line)
;; (println (min-lsb (map #(Long/parseLong %) (.split (read-line) " "))))
(->> (-> (read-line)
         (.split " "))
     (map #(Long/parseUnsignedLong %))
     (min-lsb)
     (println))
