{-# OPTIONS_GHC -O2 -funbox-strict-fields #-}
import qualified Data.ByteString.Char8 as BC
import           Data.Maybe            (fromJust)

main :: IO ()
main = do
  n <- readLn
  as <- map readInt . BC.words <$> BC.getLine
  print $ solve n as

solve :: Int -> [Int] -> Int
solve n as = sum $ map count as

count :: Int -> Int
count a = length . takeWhile (\x -> x `mod` 2 == 0) $ iterate (\x -> x `div` 2) a

readInt :: BC.ByteString -> Int
readInt = fst . fromJust . BC.readInt
