import std.stdio;
import std.string;
import std.conv;

void main()
{
    int n = readln.chomp.to!(int);
    long[] a = readln.chomp.split.to!(long[]);

    int ans = 0;
    for (int i = 0; i < a.length; i++) {
        while (true) {
            if (!(a[i] & 1)) {
                ans += 1;
                a[i] /= 2;
            }
            else {
                break;
            }
        }
    }

    writeln(ans);
}