function Main(input) {
  input = input.split("\n");
  var N = input[0];
  var A = input[1].split(" ").map(Number);
  var count = 0;
for(var i=0;i<N;i++){
  while(true){
    if(A[i]%2==0){
      count++;
      A[i] = A[i]/2;
    }else{
      break;
    }
  }
}
  console.log(count);
}Main(require("fs").readFileSync("/dev/stdin", "utf8"));
