import Data.Bits
import Data.List
import Data.Maybe(fromJust)
import Control.Monad
--import Data.Array as A ((!))
--import Data.Graph
import qualified Data.Vector.Unboxed as V
--import qualified Data.Vector.Unboxed.Mutable as VM
import Control.Monad.ST
import Data.Maybe (fromMaybe)
import qualified Data.ByteString.Char8 as BS
--import Debug.Trace

toTuple :: [a] -> (a,a)
toTuple (x:y:_) = (x,y)
toTuple _ = undefined

getInt :: IO Int
getInt = fst . fromJust. BS.readInt <$> BS.getLine

getIntList :: IO [Int]
getIntList = unfoldr (BS.readInt . BS.dropWhile (== ' ')) <$> BS.getLine

getLineB :: (Read a) => IO [a]
getLineB = map (read.BS.unpack) . BS.words <$> BS.getLine

cnt :: Int -> Int
cnt n = if even n then (1+) $ cnt $ n `div` 2 else 0

main :: IO ()
main = do
  _ <- getLine
  as <- getIntList
  print $ foldl' (\a b -> (a+) $ cnt b) 0 as
