/*
declare function require(id:string);
const {stdin} = require('process');
let input = "";
stdin.on('data', x => {input += x});
stdin.on('end', () => {
    let [n, aline] = input.split('\n');
    let alist = aline.split(' ')
        .map(x=>x.trim()).map(x=>parseInt(x));
    let count = 0;
    for (let a of alist) {
        while (a % 2 === 0) {
            a = a / 2;
            count += 1;
        }
    }
    console.log(count);
});
*/

var stdin = require('process').stdin;
var input = "";
stdin.on('data', function (x) { input += x; });
stdin.on('end', function () {
    var _a = input.split('\n'), n = _a[0], aline = _a[1];
    var alist = aline.split(' ')
        .map(function (x) { return x.trim(); }).map(function (x) { return parseInt(x); });
    var count = 0;
    for (var _i = 0, alist_1 = alist; _i < alist_1.length; _i++) {
        var a = alist_1[_i];
        while (a % 2 === 0) {
            a = a / 2;
            count += 1;
        }
    }
    console.log(count);
});
