function Main(input) {
    var na = input.split('\n');
    var N = Number(na[0]);
    var a = na[1].split(' ').map((n) => Number(n));

    var cnt = 0;  
    for (var i = 0 ; i < a.length ; ++i) {
        var n = a[i];
        while(true) {
            if (n % 2 === 1) break;
            n = n / 2;
            ++cnt;
        }
    }
    console.log(cnt);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
