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

void main()
{
	auto n = readln.strip.to!int;
	auto as = readln.split.to!( long[] );
	writeln( solve( n, as ) );
}

auto solve( in int n, in long[] as )
{
	auto c = 0;
	
	foreach( i, long a; as )
	{
		while( 0 < a && a % 2 == 0 )
		{
			a /= 2;
			c++;
		}
	}
	
	return c;
}

unittest
{
	assert( solve( 3, [ 5, 2, 4 ] ) == 3 );
	assert( solve( 4, [ 631, 577, 243, 199 ] ) == 0 );
	assert( solve( 10, [ 2184, 2126, 1721, 1800, 1024, 2528, 3360, 1945, 1280, 1776 ] ) == 39 );
}
