import std.functional,
       std.algorithm,
       std.container,
       std.typetuple,
       std.typecons,
       std.bigint,
       std.string,
       std.traits,
       std.array,
       std.range,
       std.stdio,
       std.conv;

void main() {
  ulong N = readln.chomp.to!ulong;
  ulong[] A = readln.chomp.split.to!(ulong[]);
  ulong ans;

  foreach (a; A) {
    while (a % 2 == 0) {
      a /= 2;
      ans++;
    }
  }

  writeln(ans);
}
