import java.util.Scanner;

public class Main {	
	public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)){
			int n=sc.nextInt();
			int op=0;
			for(int i=0; i<n; i++) {
				int a=sc.nextInt();
				int count=0;
				while(a>0) {
					if(a%2==1) {
						break;
					}
					a=a/2;
					count++;
				}
				op+=count;
			}

			System.out.println(op);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {	
	public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)){
			int n=sc.nextInt();
			int op=0;
			for(int i=0; i<n; i++) {
				int a=sc.nextInt();
				int count=0;
				while(a>0) {
					if(a%2==1) {
						break;
					}
					a=a/2;
					count++;
				}
				op+=count;
			}

			System.out.println(op);
		}
	}
} Main public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)){
			int n=sc.nextInt();
			int op=0;
			for(int i=0; i<n; i++) {
				int a=sc.nextInt();
				int count=0;
				while(a>0) {
					if(a%2==1) {
						break;
					}
					a=a/2;
					count++;
				}
				op+=count;
			}

			System.out.println(op);
		}
	} main {
		try(Scanner sc = new Scanner(System.in)){
			int n=sc.nextInt();
			int op=0;
			for(int i=0; i<n; i++) {
				int a=sc.nextInt();
				int count=0;
				while(a>0) {
					if(a%2==1) {
						break;
					}
					a=a/2;
					count++;
				}
				op+=count;
			}

			System.out.println(op);
		}
	} try(Scanner sc = new Scanner(System.in)){
			int n=sc.nextInt();
			int op=0;
			for(int i=0; i<n; i++) {
				int a=sc.nextInt();
				int count=0;
				while(a>0) {
					if(a%2==1) {
						break;
					}
					a=a/2;
					count++;
				}
				op+=count;
			}

			System.out.println(op);
		} {
			int n=sc.nextInt();
			int op=0;
			for(int i=0; i<n; i++) {
				int a=sc.nextInt();
				int count=0;
				while(a>0) {
					if(a%2==1) {
						break;
					}
					a=a/2;
					count++;
				}
				op+=count;
			}

			System.out.println(op);
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int op=0; op 0 for(int i=0; i<n; i++) {
				int a=sc.nextInt();
				int count=0;
				while(a>0) {
					if(a%2==1) {
						break;
					}
					a=a/2;
					count++;
				}
				op+=count;
			} int i=0; int i=0; i 0 i<n i n i++ i++ i {
				int a=sc.nextInt();
				int count=0;
				while(a>0) {
					if(a%2==1) {
						break;
					}
					a=a/2;
					count++;
				}
				op+=count;
			} {
				int a=sc.nextInt();
				int count=0;
				while(a>0) {
					if(a%2==1) {
						break;
					}
					a=a/2;
					count++;
				}
				op+=count;
			} int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc int count=0; count 0 while(a>0) {
					if(a%2==1) {
						break;
					}
					a=a/2;
					count++;
				} a>0 a 0 {
					if(a%2==1) {
						break;
					}
					a=a/2;
					count++;
				} if(a%2==1) {
						break;
					} a%2==1 a%2 a 2 1 {
						break;
					} break; a=a/2 a a/2 a 2 count++ count op+=count op count System.out.println(op) System.out.println System.out System System.out op String[] args args public class Main {	
	public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)){
			int n=sc.nextInt();
			int op=0;
			for(int i=0; i<n; i++) {
				int a=sc.nextInt();
				int count=0;
				while(a>0) {
					if(a%2==1) {
						break;
					}
					a=a/2;
					count++;
				}
				op+=count;
			}

			System.out.println(op);
		}
	}
} public class Main {	
	public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)){
			int n=sc.nextInt();
			int op=0;
			for(int i=0; i<n; i++) {
				int a=sc.nextInt();
				int count=0;
				while(a>0) {
					if(a%2==1) {
						break;
					}
					a=a/2;
					count++;
				}
				op+=count;
			}

			System.out.println(op);
		}
	}
} Main
import java.util.Scanner;

public class Main {	
	public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)){
			int n=sc.nextInt();
			int op=0;
			for(int i=0; i<n; i++) {
				int a=sc.nextInt();
				int count=0;
				while(a>0) {
					if(a%2==1) {
						break;
					}
					a=a/2;
					count++;
				}
				op+=count;
			}

			System.out.println(op);
		}
	}
}