'use strict'

function Main(input) {
  const N = Number(input.split('\n')[0]);
  let list = input.split('\n')[1].split(' ').map(x => Number(x));
  let count = 0;

  for(let i=0; i<N; i++) {
    while(list[i] % 2 === 0) {
      list[i] = list[i] / 2;
      count++;
    }
  }

  console.log(count);

}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());