(ns Atcoder.ABC081-B)

(require '[clojure.string :as str])
(str/split (read-line) #" ")                                ; N
(def A (map read-string (str/split (read-line) #" ")))      ; A

(loop [vals A result 0]                                     ; vals = A, result = 0の状態からループ
  (def odd_count (count (filter odd? vals)))
  (if (= odd_count 0)                                       ; odd_count == 0であれば
    (recur (map (fn [x] (/ x 2)) vals) (inc result))        ; valsの要素に関して２で割り resultをインクリメント
    (println (str result))
    )
  )