import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		long answer = 0;
		for (int i = 0; i < N; i++) {
			long x = input.nextLong();
			while (x%2==0) {
				answer++;
				x/=2;
			}
		}
		System.out.println(answer);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		long answer = 0;
		for (int i = 0; i < N; i++) {
			long x = input.nextLong();
			while (x%2==0) {
				answer++;
				x/=2;
			}
		}
		System.out.println(answer);
	}
} Main public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		long answer = 0;
		for (int i = 0; i < N; i++) {
			long x = input.nextLong();
			while (x%2==0) {
				answer++;
				x/=2;
			}
		}
		System.out.println(answer);
	} main {
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		long answer = 0;
		for (int i = 0; i < N; i++) {
			long x = input.nextLong();
			while (x%2==0) {
				answer++;
				x/=2;
			}
		}
		System.out.println(answer);
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) int N = input.nextInt(); N input.nextInt() input.nextInt input long answer = 0; answer 0 for (int i = 0; i < N; i++) {
			long x = input.nextLong();
			while (x%2==0) {
				answer++;
				x/=2;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			long x = input.nextLong();
			while (x%2==0) {
				answer++;
				x/=2;
			}
		} {
			long x = input.nextLong();
			while (x%2==0) {
				answer++;
				x/=2;
			}
		} long x = input.nextLong(); x input.nextLong() input.nextLong input while (x%2==0) {
				answer++;
				x/=2;
			} x%2==0 x%2 x 2 0 {
				answer++;
				x/=2;
			} answer++ answer x/=2 x 2 System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		long answer = 0;
		for (int i = 0; i < N; i++) {
			long x = input.nextLong();
			while (x%2==0) {
				answer++;
				x/=2;
			}
		}
		System.out.println(answer);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		long answer = 0;
		for (int i = 0; i < N; i++) {
			long x = input.nextLong();
			while (x%2==0) {
				answer++;
				x/=2;
			}
		}
		System.out.println(answer);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		long answer = 0;
		for (int i = 0; i < N; i++) {
			long x = input.nextLong();
			while (x%2==0) {
				answer++;
				x/=2;
			}
		}
		System.out.println(answer);
	}
}