module solution;
import std.algorithm, std.array, std.conv, std.stdio;

void main ()
{
	int n;
	while (readf (" %s", &n) > 0)
	{
		readln;
		auto a = readln.splitter.map !(to !(int)).array;
		int res = 0;
		foreach (c; a)
		{
			while (c % 2 == 0)
			{
				res += 1;
				c /= 2;
			}
		}
		writeln (res);
	}
}
