import java.util.Scanner;

public class Main {
	public static long ctz(long n) {
		long ret = 0;
		while ((n & 1) == 0) {
			ret++;
			n >>= 1;
		}
		return ret;
	}
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		long ret = 0;
		for (int i = 0; i < n; i++) {
			long input = sc.nextLong();
			ret += ctz(input);
		}
		System.out.println(ret);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static long ctz(long n) {
		long ret = 0;
		while ((n & 1) == 0) {
			ret++;
			n >>= 1;
		}
		return ret;
	}
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		long ret = 0;
		for (int i = 0; i < n; i++) {
			long input = sc.nextLong();
			ret += ctz(input);
		}
		System.out.println(ret);
	}
} Main public static long ctz(long n) {
		long ret = 0;
		while ((n & 1) == 0) {
			ret++;
			n >>= 1;
		}
		return ret;
	} ctz {
		long ret = 0;
		while ((n & 1) == 0) {
			ret++;
			n >>= 1;
		}
		return ret;
	} long ret = 0; ret 0 while ((n & 1) == 0) {
			ret++;
			n >>= 1;
		} (n & 1) == 0 (n & 1) n 1 0 {
			ret++;
			n >>= 1;
		} ret++ ret n >>= 1 n 1 return ret; ret long n n public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		long ret = 0;
		for (int i = 0; i < n; i++) {
			long input = sc.nextLong();
			ret += ctz(input);
		}
		System.out.println(ret);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		long ret = 0;
		for (int i = 0; i < n; i++) {
			long input = sc.nextLong();
			ret += ctz(input);
		}
		System.out.println(ret);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc long ret = 0; ret 0 for (int i = 0; i < n; i++) {
			long input = sc.nextLong();
			ret += ctz(input);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			long input = sc.nextLong();
			ret += ctz(input);
		} {
			long input = sc.nextLong();
			ret += ctz(input);
		} long input = sc.nextLong(); input sc.nextLong() sc.nextLong sc ret += ctz(input) ret ctz(input) ctz input System.out.println(ret) System.out.println System.out System System.out ret String[] args args public class Main {
	public static long ctz(long n) {
		long ret = 0;
		while ((n & 1) == 0) {
			ret++;
			n >>= 1;
		}
		return ret;
	}
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		long ret = 0;
		for (int i = 0; i < n; i++) {
			long input = sc.nextLong();
			ret += ctz(input);
		}
		System.out.println(ret);
	}
} public class Main {
	public static long ctz(long n) {
		long ret = 0;
		while ((n & 1) == 0) {
			ret++;
			n >>= 1;
		}
		return ret;
	}
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		long ret = 0;
		for (int i = 0; i < n; i++) {
			long input = sc.nextLong();
			ret += ctz(input);
		}
		System.out.println(ret);
	}
} Main
import java.util.Scanner;

public class Main {
	public static long ctz(long n) {
		long ret = 0;
		while ((n & 1) == 0) {
			ret++;
			n >>= 1;
		}
		return ret;
	}
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		long ret = 0;
		for (int i = 0; i < n; i++) {
			long input = sc.nextLong();
			ret += ctz(input);
		}
		System.out.println(ret);
	}
}