
function checkMod2(val, index){
    if(val % Math.pow(2, index + 1) === 0){
        return checkMod2(val, index + 1);
    }
    return index;
}

function main(input) {
    var lines = input.split('\n');
    var N = parseInt(lines[0]);
    var array = lines[1].split(' ');
    var sum = 0;

    array.forEach(function(str){
        var val = parseInt(str);
        var checkedVal = checkMod2(val, 0);
        sum += checkedVal;
    });

    console.log(sum);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));