solver::[Int]->Int
solver = sum.(map (div2 0))

div2::Int->Int->Int
div2 store n = if mod n 2 == 0 then div2 (store+1) (div n 2) else store

main::IO()
main=do
  _<-getLine
  ss<-getLine
  let ls = map read (words ss)::[Int]
  print (solver ls)
