import std.stdio, std.string, std.range, std.conv, std.array, std.algorithm, std.math, std.typecons;

void main() {
    const N = readln.chomp.to!long;
    const as = readln.split.to!(long[]);

    long count2(long x) {
        if (x % 2 == 1) return 0;
        else return 1 + count2(x/2);
    }
    writeln(as.map!(a => count2(a)).sum);
}

