"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    const N = parseInt(arg[0].split(" ")[0]);
    const A = arg[1].split(" ").map(n=>parseInt(n));
    
    let limit = [];
    
    for(let i in A) {
        let cnt = 0;
        
        while(A[i] % 2 === 0 || A[i] === 0) {
            A[i] /= 2;
            cnt++;
        }
        
        limit.push(cnt);
        cnt = 0;
    }
    
    console.log(limit.reduce((m,n)=>m+n));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));