import std.stdio, std.algorithm, std.string, std.conv, std.array, std.range, std.math;
int[] reads() { return readln.split.to!(int[]); }

int f(int x) {
    int t;
    while(x%2 == 0) x/=2, t++;
    return t;
}

void main() {
    readln;
    writeln(reads.map!(f).sum);
}