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

void main() {
	long N;
	long [] a;
	N = readln().chomp().to!(long);
	a = readln().chomp().split().to!(long[]);
	int res = 0;
	foreach(long i; a) {
		int cnt = 0;
		while(i % 2 == 0) {
			cnt++;
			i /= 2;
		}
		res += cnt;
	}
	writefln("%d",res);
}
