main :: IO()
main = do
  _ <- getLine
  ai <- map read . words <$> getLine
  print $ slv (product ai) 0

slv :: Integer -> Integer -> Integer
slv n ret | even n = slv (n `div` 2) (ret + 1)
          | otherwise = ret