import java.util.Scanner;

class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int a[] = new int[n];
		int C = 0;
		int max = 0;

		for (int i = 0; i < n; i++) {
			int b = sc.nextInt();
			if (b % 2 == 0) a[C++] = b;
		}

		for (int i = 0; i < C; i++) {
			int count = 0;
			while(true) {
				a[i] /= 2;
				count++;
				if (a[i] % 2 == 1) {
					break;
				}
				//System.out.println(a[i]);
			}
			max += count;
		}

		System.out.println(max);
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int a[] = new int[n];
		int C = 0;
		int max = 0;

		for (int i = 0; i < n; i++) {
			int b = sc.nextInt();
			if (b % 2 == 0) a[C++] = b;
		}

		for (int i = 0; i < C; i++) {
			int count = 0;
			while(true) {
				a[i] /= 2;
				count++;
				if (a[i] % 2 == 1) {
					break;
				}
				//System.out.println(a[i]);
			}
			max += count;
		}

		System.out.println(max);
	}
} Main public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int a[] = new int[n];
		int C = 0;
		int max = 0;

		for (int i = 0; i < n; i++) {
			int b = sc.nextInt();
			if (b % 2 == 0) a[C++] = b;
		}

		for (int i = 0; i < C; i++) {
			int count = 0;
			while(true) {
				a[i] /= 2;
				count++;
				if (a[i] % 2 == 1) {
					break;
				}
				//System.out.println(a[i]);
			}
			max += count;
		}

		System.out.println(max);
	} main {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int a[] = new int[n];
		int C = 0;
		int max = 0;

		for (int i = 0; i < n; i++) {
			int b = sc.nextInt();
			if (b % 2 == 0) a[C++] = b;
		}

		for (int i = 0; i < C; i++) {
			int count = 0;
			while(true) {
				a[i] /= 2;
				count++;
				if (a[i] % 2 == 1) {
					break;
				}
				//System.out.println(a[i]);
			}
			max += count;
		}

		System.out.println(max);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int a[] = new int[n]; a new int[n] n int C = 0; C 0 int max = 0; max 0 for (int i = 0; i < n; i++) {
			int b = sc.nextInt();
			if (b % 2 == 0) a[C++] = b;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int b = sc.nextInt();
			if (b % 2 == 0) a[C++] = b;
		} {
			int b = sc.nextInt();
			if (b % 2 == 0) a[C++] = b;
		} int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc if (b % 2 == 0) a[C++] = b; b % 2 == 0 b % 2 b 2 0 a[C++] = b a[C++] a C++ C b for (int i = 0; i < C; i++) {
			int count = 0;
			while(true) {
				a[i] /= 2;
				count++;
				if (a[i] % 2 == 1) {
					break;
				}
				//System.out.println(a[i]);
			}
			max += count;
		} int i = 0; int i = 0; i 0 i < C i C i++ i++ i {
			int count = 0;
			while(true) {
				a[i] /= 2;
				count++;
				if (a[i] % 2 == 1) {
					break;
				}
				//System.out.println(a[i]);
			}
			max += count;
		} {
			int count = 0;
			while(true) {
				a[i] /= 2;
				count++;
				if (a[i] % 2 == 1) {
					break;
				}
				//System.out.println(a[i]);
			}
			max += count;
		} int count = 0; count 0 while(true) {
				a[i] /= 2;
				count++;
				if (a[i] % 2 == 1) {
					break;
				}
				//System.out.println(a[i]);
			} true {
				a[i] /= 2;
				count++;
				if (a[i] % 2 == 1) {
					break;
				}
				//System.out.println(a[i]);
			} a[i] /= 2 a[i] a i 2 count++ count if (a[i] % 2 == 1) {
					break;
				} a[i] % 2 == 1 a[i] % 2 a[i] a i 2 1 {
					break;
				} break; max += count max count System.out.println(max) System.out.println System.out System System.out max String args[] args
import java.util.Scanner;

class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int a[] = new int[n];
		int C = 0;
		int max = 0;

		for (int i = 0; i < n; i++) {
			int b = sc.nextInt();
			if (b % 2 == 0) a[C++] = b;
		}

		for (int i = 0; i < C; i++) {
			int count = 0;
			while(true) {
				a[i] /= 2;
				count++;
				if (a[i] % 2 == 1) {
					break;
				}
				//System.out.println(a[i]);
			}
			max += count;
		}

		System.out.println(max);
	}
}