main :: IO ()
main = do
    n <- getLine
    as <- map read . words <$> getLine
    putStrLn (show $ pirupiru as)

pirupiru :: [Int] -> Int
pirupiru xs = if godFizzNa xs then 1 + (pirupiru $ fmap (`div` 2) xs)
              else 0

-- 次が可能か調べる
godFizzNa :: [Int] -> Bool
godFizzNa [] = True
godFizzNa (x:xs) = if x `mod` 2 == 0 then godFizzNa xs
                 else False

-- 回数を記録する必要がある