function Count(p) {
    var cnt = 0;
    while (p % 2 == 0) {
        cnt++;
        p >>= 1;
    }
    return cnt;
}
function Main(input) {
    input = input.split("\n");
    a = input[1].split(" ").map(p => Count(p));
    console.log(a.reduce((p, q) => p + q));
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));