N = io.read()
a = {}
for i=1,N do
  table.insert(a, tonumber(io.read("*n")))
end

result = 0

for i=1,N do
  while a[i]&0x01 == 0 do
    a[i] = a[i] / 2
    result = result + 1
  end
end

print(string.format("%d",result))
