function Main(input) {
  var n = parseInt(input[0]);
  var a = input[1].split(" ");
  var cnt = 0;
  for (var i in a) {
    while(a[i]%2 == 0) {
      a[i] /= 2;
      cnt++;
    }
  }
  console.log(cnt);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").split("\n"));
