"use strict";

const main=(input)=>{
  const args = input.split('\n');
  const quantity = args[0];
  const nums = args[1].split(' ');
  let count = 0;
  
  for(i=0; i < quantity;i++){
    while(nums[i]%2===0){
      nums[i] = nums[i] / 2; 
      count +=1;
  }
 }
console.log(count);
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));