import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int[] A=new int[N+1];
		int answer=0;
		for(int i=1;i<=N;i++) {
			A[i]=sc.nextInt();
			int d=1;
			while(A[i]%(int)Math.pow(2, d)==0) {
				d++;
			}
			answer=answer+d-1;
		}
		System.out.println(""+answer);

	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int[] A=new int[N+1];
		int answer=0;
		for(int i=1;i<=N;i++) {
			A[i]=sc.nextInt();
			int d=1;
			while(A[i]%(int)Math.pow(2, d)==0) {
				d++;
			}
			answer=answer+d-1;
		}
		System.out.println(""+answer);

	}
} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int[] A=new int[N+1];
		int answer=0;
		for(int i=1;i<=N;i++) {
			A[i]=sc.nextInt();
			int d=1;
			while(A[i]%(int)Math.pow(2, d)==0) {
				d++;
			}
			answer=answer+d-1;
		}
		System.out.println(""+answer);

	} main {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int[] A=new int[N+1];
		int answer=0;
		for(int i=1;i<=N;i++) {
			A[i]=sc.nextInt();
			int d=1;
			while(A[i]%(int)Math.pow(2, d)==0) {
				d++;
			}
			answer=answer+d-1;
		}
		System.out.println(""+answer);

	} 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+1]; A new int[N+1] N+1 N 1 int answer=0; answer 0 for(int i=1;i<=N;i++) {
			A[i]=sc.nextInt();
			int d=1;
			while(A[i]%(int)Math.pow(2, d)==0) {
				d++;
			}
			answer=answer+d-1;
		} int i=1; int i=1; i 1 i<=N i N i++ i++ i {
			A[i]=sc.nextInt();
			int d=1;
			while(A[i]%(int)Math.pow(2, d)==0) {
				d++;
			}
			answer=answer+d-1;
		} {
			A[i]=sc.nextInt();
			int d=1;
			while(A[i]%(int)Math.pow(2, d)==0) {
				d++;
			}
			answer=answer+d-1;
		} A[i]=sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc int d=1; d 1 while(A[i]%(int)Math.pow(2, d)==0) {
				d++;
			} A[i]%(int)Math.pow(2, d)==0 A[i]%(int)Math.pow(2, d) A[i] A i (int)Math.pow(2, d) Math.pow Math 2 d 0 {
				d++;
			} d++ d answer=answer+d-1 answer answer+d-1 answer+d answer d 1 System.out.println(""+answer) System.out.println System.out System System.out ""+answer "" answer String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int[] A=new int[N+1];
		int answer=0;
		for(int i=1;i<=N;i++) {
			A[i]=sc.nextInt();
			int d=1;
			while(A[i]%(int)Math.pow(2, d)==0) {
				d++;
			}
			answer=answer+d-1;
		}
		System.out.println(""+answer);

	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int[] A=new int[N+1];
		int answer=0;
		for(int i=1;i<=N;i++) {
			A[i]=sc.nextInt();
			int d=1;
			while(A[i]%(int)Math.pow(2, d)==0) {
				d++;
			}
			answer=answer+d-1;
		}
		System.out.println(""+answer);

	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int[] A=new int[N+1];
		int answer=0;
		for(int i=1;i<=N;i++) {
			A[i]=sc.nextInt();
			int d=1;
			while(A[i]%(int)Math.pow(2, d)==0) {
				d++;
			}
			answer=answer+d-1;
		}
		System.out.println(""+answer);

	}
}
