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

long byTwoCount(long a){
    long result = 0;
    while(a % 2 == 0){
        result++;
        a /= 2;
    }
    return result;
}

long solve(long[] as){
    return as.map!(byTwoCount).sum();
}

void main(){
    readln();
    auto as = readln().chomp().split().map!(to!long).array();
    solve(as).writeln();
}