import java.util.Scanner;

public class Main {
	private long[] elems;
	private long result;

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = Integer.parseInt(in.nextLine());
		String[] tokens = in.nextLine().split(" ");
		Main main = new Main(tokens);
		System.out.println(main.result);
		in.close();
	}

	public Main(String[] tokens) {
		this.elems = new long[tokens.length];
		for (int i = 0; i < tokens.length; ++i) {
			elems[i] = Long.parseLong(tokens[i]);
		}

		for (int i = 0; i < elems.length; ++i) {
			result += divCount(elems[i]);
		}
	}

	private int divCount(long num) {
		int result = 0;
		while (true) {
			if (num % 2 != 0) {
				break;
			}
			result++;
			num = num / 2;
		}
		return result;

	}

} import java.util.Scanner; Scanner java.util public class Main {
	private long[] elems;
	private long result;

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = Integer.parseInt(in.nextLine());
		String[] tokens = in.nextLine().split(" ");
		Main main = new Main(tokens);
		System.out.println(main.result);
		in.close();
	}

	public Main(String[] tokens) {
		this.elems = new long[tokens.length];
		for (int i = 0; i < tokens.length; ++i) {
			elems[i] = Long.parseLong(tokens[i]);
		}

		for (int i = 0; i < elems.length; ++i) {
			result += divCount(elems[i]);
		}
	}

	private int divCount(long num) {
		int result = 0;
		while (true) {
			if (num % 2 != 0) {
				break;
			}
			result++;
			num = num / 2;
		}
		return result;

	}

} Main private long[] elems; elems private long result; result public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = Integer.parseInt(in.nextLine());
		String[] tokens = in.nextLine().split(" ");
		Main main = new Main(tokens);
		System.out.println(main.result);
		in.close();
	} main {
		Scanner in = new Scanner(System.in);
		int n = Integer.parseInt(in.nextLine());
		String[] tokens = in.nextLine().split(" ");
		Main main = new Main(tokens);
		System.out.println(main.result);
		in.close();
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = Integer.parseInt(in.nextLine()); n Integer.parseInt(in.nextLine()) Integer.parseInt Integer in.nextLine() in.nextLine in String[] tokens = in.nextLine().split(" "); tokens in.nextLine().split(" ") in.nextLine().split in.nextLine() in.nextLine in " " Main main = new Main(tokens); main new Main(tokens) System.out.println(main.result) System.out.println System.out System System.out main.result main main.result in.close() in.close in String[] args args public Main(String[] tokens) {
		this.elems = new long[tokens.length];
		for (int i = 0; i < tokens.length; ++i) {
			elems[i] = Long.parseLong(tokens[i]);
		}

		for (int i = 0; i < elems.length; ++i) {
			result += divCount(elems[i]);
		}
	} Main {
		this.elems = new long[tokens.length];
		for (int i = 0; i < tokens.length; ++i) {
			elems[i] = Long.parseLong(tokens[i]);
		}

		for (int i = 0; i < elems.length; ++i) {
			result += divCount(elems[i]);
		}
	} this.elems = new long[tokens.length] this.elems this this.elems new long[tokens.length] tokens.length tokens tokens.length for (int i = 0; i < tokens.length; ++i) {
			elems[i] = Long.parseLong(tokens[i]);
		} int i = 0; int i = 0; i 0 i < tokens.length i tokens.length tokens tokens.length ++i ++i i {
			elems[i] = Long.parseLong(tokens[i]);
		} {
			elems[i] = Long.parseLong(tokens[i]);
		} elems[i] = Long.parseLong(tokens[i]) elems[i] elems i Long.parseLong(tokens[i]) Long.parseLong Long tokens[i] tokens i for (int i = 0; i < elems.length; ++i) {
			result += divCount(elems[i]);
		} int i = 0; int i = 0; i 0 i < elems.length i elems.length elems elems.length ++i ++i i {
			result += divCount(elems[i]);
		} {
			result += divCount(elems[i]);
		} result += divCount(elems[i]) result divCount(elems[i]) divCount elems[i] elems i String[] tokens tokens private int divCount(long num) {
		int result = 0;
		while (true) {
			if (num % 2 != 0) {
				break;
			}
			result++;
			num = num / 2;
		}
		return result;

	} divCount {
		int result = 0;
		while (true) {
			if (num % 2 != 0) {
				break;
			}
			result++;
			num = num / 2;
		}
		return result;

	} int result = 0; result 0 while (true) {
			if (num % 2 != 0) {
				break;
			}
			result++;
			num = num / 2;
		} true {
			if (num % 2 != 0) {
				break;
			}
			result++;
			num = num / 2;
		} if (num % 2 != 0) {
				break;
			} num % 2 != 0 num % 2 num 2 0 {
				break;
			} break; result++ result num = num / 2 num num / 2 num 2 return result; result long num num public class Main {
	private long[] elems;
	private long result;

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = Integer.parseInt(in.nextLine());
		String[] tokens = in.nextLine().split(" ");
		Main main = new Main(tokens);
		System.out.println(main.result);
		in.close();
	}

	public Main(String[] tokens) {
		this.elems = new long[tokens.length];
		for (int i = 0; i < tokens.length; ++i) {
			elems[i] = Long.parseLong(tokens[i]);
		}

		for (int i = 0; i < elems.length; ++i) {
			result += divCount(elems[i]);
		}
	}

	private int divCount(long num) {
		int result = 0;
		while (true) {
			if (num % 2 != 0) {
				break;
			}
			result++;
			num = num / 2;
		}
		return result;

	}

} public class Main {
	private long[] elems;
	private long result;

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = Integer.parseInt(in.nextLine());
		String[] tokens = in.nextLine().split(" ");
		Main main = new Main(tokens);
		System.out.println(main.result);
		in.close();
	}

	public Main(String[] tokens) {
		this.elems = new long[tokens.length];
		for (int i = 0; i < tokens.length; ++i) {
			elems[i] = Long.parseLong(tokens[i]);
		}

		for (int i = 0; i < elems.length; ++i) {
			result += divCount(elems[i]);
		}
	}

	private int divCount(long num) {
		int result = 0;
		while (true) {
			if (num % 2 != 0) {
				break;
			}
			result++;
			num = num / 2;
		}
		return result;

	}

} Main
import java.util.Scanner;

public class Main {
	private long[] elems;
	private long result;

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = Integer.parseInt(in.nextLine());
		String[] tokens = in.nextLine().split(" ");
		Main main = new Main(tokens);
		System.out.println(main.result);
		in.close();
	}

	public Main(String[] tokens) {
		this.elems = new long[tokens.length];
		for (int i = 0; i < tokens.length; ++i) {
			elems[i] = Long.parseLong(tokens[i]);
		}

		for (int i = 0; i < elems.length; ++i) {
			result += divCount(elems[i]);
		}
	}

	private int divCount(long num) {
		int result = 0;
		while (true) {
			if (num % 2 != 0) {
				break;
			}
			result++;
			num = num / 2;
		}
		return result;

	}

}
