import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		long []a = new long[N];
		for(int i = 0; i < N; i++) {
			a[i] = scan.nextLong();
		}
		scan.close();

		long p = 0;
		for(int i = 0; i < N; i++) {
			p += num2(a[i]);
		}

		if(p == 0) {
			System.out.println(0);
		}else {
			System.out.println(p - N);
		}

	}
	public static int num2(long n) {
		for(int i = 1; i < 10000; i++) {
			long t = (long)Math.pow(2, i);
			if(n % t != 0) {
				return i;
			}
		}
		return 0;
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		long []a = new long[N];
		for(int i = 0; i < N; i++) {
			a[i] = scan.nextLong();
		}
		scan.close();

		long p = 0;
		for(int i = 0; i < N; i++) {
			p += num2(a[i]);
		}

		if(p == 0) {
			System.out.println(0);
		}else {
			System.out.println(p - N);
		}

	}
	public static int num2(long n) {
		for(int i = 1; i < 10000; i++) {
			long t = (long)Math.pow(2, i);
			if(n % t != 0) {
				return i;
			}
		}
		return 0;
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		long []a = new long[N];
		for(int i = 0; i < N; i++) {
			a[i] = scan.nextLong();
		}
		scan.close();

		long p = 0;
		for(int i = 0; i < N; i++) {
			p += num2(a[i]);
		}

		if(p == 0) {
			System.out.println(0);
		}else {
			System.out.println(p - N);
		}

	} main {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		long []a = new long[N];
		for(int i = 0; i < N; i++) {
			a[i] = scan.nextLong();
		}
		scan.close();

		long p = 0;
		for(int i = 0; i < N; i++) {
			p += num2(a[i]);
		}

		if(p == 0) {
			System.out.println(0);
		}else {
			System.out.println(p - N);
		}

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan long []a = new long[N]; a new long[N] N for(int i = 0; i < N; i++) {
			a[i] = scan.nextLong();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			a[i] = scan.nextLong();
		} {
			a[i] = scan.nextLong();
		} a[i] = scan.nextLong() a[i] a i scan.nextLong() scan.nextLong scan scan.close() scan.close scan long p = 0; p 0 for(int i = 0; i < N; i++) {
			p += num2(a[i]);
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			p += num2(a[i]);
		} {
			p += num2(a[i]);
		} p += num2(a[i]) p num2(a[i]) num2 a[i] a i if(p == 0) {
			System.out.println(0);
		}else {
			System.out.println(p - N);
		} p == 0 p 0 {
			System.out.println(0);
		} System.out.println(0) System.out.println System.out System System.out 0 {
			System.out.println(p - N);
		} System.out.println(p - N) System.out.println System.out System System.out p - N p N String[] args args public static int num2(long n) {
		for(int i = 1; i < 10000; i++) {
			long t = (long)Math.pow(2, i);
			if(n % t != 0) {
				return i;
			}
		}
		return 0;
	} num2 {
		for(int i = 1; i < 10000; i++) {
			long t = (long)Math.pow(2, i);
			if(n % t != 0) {
				return i;
			}
		}
		return 0;
	} for(int i = 1; i < 10000; i++) {
			long t = (long)Math.pow(2, i);
			if(n % t != 0) {
				return i;
			}
		} int i = 1; int i = 1; i 1 i < 10000 i 10000 i++ i++ i {
			long t = (long)Math.pow(2, i);
			if(n % t != 0) {
				return i;
			}
		} {
			long t = (long)Math.pow(2, i);
			if(n % t != 0) {
				return i;
			}
		} long t = (long)Math.pow(2, i); t (long)Math.pow(2, i) Math.pow Math 2 i if(n % t != 0) {
				return i;
			} n % t != 0 n % t n t 0 {
				return i;
			} return i; i return 0; 0 long n n public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		long []a = new long[N];
		for(int i = 0; i < N; i++) {
			a[i] = scan.nextLong();
		}
		scan.close();

		long p = 0;
		for(int i = 0; i < N; i++) {
			p += num2(a[i]);
		}

		if(p == 0) {
			System.out.println(0);
		}else {
			System.out.println(p - N);
		}

	}
	public static int num2(long n) {
		for(int i = 1; i < 10000; i++) {
			long t = (long)Math.pow(2, i);
			if(n % t != 0) {
				return i;
			}
		}
		return 0;
	}
} public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		long []a = new long[N];
		for(int i = 0; i < N; i++) {
			a[i] = scan.nextLong();
		}
		scan.close();

		long p = 0;
		for(int i = 0; i < N; i++) {
			p += num2(a[i]);
		}

		if(p == 0) {
			System.out.println(0);
		}else {
			System.out.println(p - N);
		}

	}
	public static int num2(long n) {
		for(int i = 1; i < 10000; i++) {
			long t = (long)Math.pow(2, i);
			if(n % t != 0) {
				return i;
			}
		}
		return 0;
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		long []a = new long[N];
		for(int i = 0; i < N; i++) {
			a[i] = scan.nextLong();
		}
		scan.close();

		long p = 0;
		for(int i = 0; i < N; i++) {
			p += num2(a[i]);
		}

		if(p == 0) {
			System.out.println(0);
		}else {
			System.out.println(p - N);
		}

	}
	public static int num2(long n) {
		for(int i = 1; i < 10000; i++) {
			long t = (long)Math.pow(2, i);
			if(n % t != 0) {
				return i;
			}
		}
		return 0;
	}
}