import java.util.*;
 
public class Main {
	
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int N = sc.nextInt();
    	int count = 0;
    	for (int i = 1; i < N+1; i++) {
    		String bi = Integer.toString(sc.nextInt(), 2);
    		for (int j = bi.length()-1; 0 < j; j--) {
    			if (bi.charAt(j) == '0') {
    				count++;
    			} else {
    				break;
    			}
    		}
    	}
    	System.out.println(count);
    }
} import java.util.*; util.* java public class Main {
	
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int N = sc.nextInt();
    	int count = 0;
    	for (int i = 1; i < N+1; i++) {
    		String bi = Integer.toString(sc.nextInt(), 2);
    		for (int j = bi.length()-1; 0 < j; j--) {
    			if (bi.charAt(j) == '0') {
    				count++;
    			} else {
    				break;
    			}
    		}
    	}
    	System.out.println(count);
    }
} Main public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int N = sc.nextInt();
    	int count = 0;
    	for (int i = 1; i < N+1; i++) {
    		String bi = Integer.toString(sc.nextInt(), 2);
    		for (int j = bi.length()-1; 0 < j; j--) {
    			if (bi.charAt(j) == '0') {
    				count++;
    			} else {
    				break;
    			}
    		}
    	}
    	System.out.println(count);
    } main {
    	Scanner sc = new Scanner(System.in);
    	int N = sc.nextInt();
    	int count = 0;
    	for (int i = 1; i < N+1; i++) {
    		String bi = Integer.toString(sc.nextInt(), 2);
    		for (int j = bi.length()-1; 0 < j; j--) {
    			if (bi.charAt(j) == '0') {
    				count++;
    			} else {
    				break;
    			}
    		}
    	}
    	System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int count = 0; count 0 for (int i = 1; i < N+1; i++) {
    		String bi = Integer.toString(sc.nextInt(), 2);
    		for (int j = bi.length()-1; 0 < j; j--) {
    			if (bi.charAt(j) == '0') {
    				count++;
    			} else {
    				break;
    			}
    		}
    	} int i = 1; int i = 1; i 1 i < N+1 i N+1 N 1 i++ i++ i {
    		String bi = Integer.toString(sc.nextInt(), 2);
    		for (int j = bi.length()-1; 0 < j; j--) {
    			if (bi.charAt(j) == '0') {
    				count++;
    			} else {
    				break;
    			}
    		}
    	} {
    		String bi = Integer.toString(sc.nextInt(), 2);
    		for (int j = bi.length()-1; 0 < j; j--) {
    			if (bi.charAt(j) == '0') {
    				count++;
    			} else {
    				break;
    			}
    		}
    	} String bi = Integer.toString(sc.nextInt(), 2); bi Integer.toString(sc.nextInt(), 2) Integer.toString Integer sc.nextInt() sc.nextInt sc 2 for (int j = bi.length()-1; 0 < j; j--) {
    			if (bi.charAt(j) == '0') {
    				count++;
    			} else {
    				break;
    			}
    		} int j = bi.length()-1; int j = bi.length()-1; j bi.length()-1 bi.length() bi.length bi 1 0 < j 0 j j-- j-- j {
    			if (bi.charAt(j) == '0') {
    				count++;
    			} else {
    				break;
    			}
    		} {
    			if (bi.charAt(j) == '0') {
    				count++;
    			} else {
    				break;
    			}
    		} if (bi.charAt(j) == '0') {
    				count++;
    			} else {
    				break;
    			} bi.charAt(j) == '0' bi.charAt(j) bi.charAt bi j '0' {
    				count++;
    			} count++ count {
    				break;
    			} break; System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int N = sc.nextInt();
    	int count = 0;
    	for (int i = 1; i < N+1; i++) {
    		String bi = Integer.toString(sc.nextInt(), 2);
    		for (int j = bi.length()-1; 0 < j; j--) {
    			if (bi.charAt(j) == '0') {
    				count++;
    			} else {
    				break;
    			}
    		}
    	}
    	System.out.println(count);
    }
} public class Main {
	
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int N = sc.nextInt();
    	int count = 0;
    	for (int i = 1; i < N+1; i++) {
    		String bi = Integer.toString(sc.nextInt(), 2);
    		for (int j = bi.length()-1; 0 < j; j--) {
    			if (bi.charAt(j) == '0') {
    				count++;
    			} else {
    				break;
    			}
    		}
    	}
    	System.out.println(count);
    }
} Main
import java.util.*;
 
public class Main {
	
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int N = sc.nextInt();
    	int count = 0;
    	for (int i = 1; i < N+1; i++) {
    		String bi = Integer.toString(sc.nextInt(), 2);
    		for (int j = bi.length()-1; 0 < j; j--) {
    			if (bi.charAt(j) == '0') {
    				count++;
    			} else {
    				break;
    			}
    		}
    	}
    	System.out.println(count);
    }
}