import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力]
		int N = sc.nextInt();
		int[] number = new int[N];
		int[] times = new int[number.length];
		int sum = 0;
      
		for(int i=0; i<N; i++){
			number[i] = sc.nextInt();
			while(number[i]%2==0){
				number[i] /= 2;
				times[i]++;
			}
			sum += times[i];
        }
      	
		System.out.println(sum);
	}
} 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[] number = new int[N];
		int[] times = new int[number.length];
		int sum = 0;
      
		for(int i=0; i<N; i++){
			number[i] = sc.nextInt();
			while(number[i]%2==0){
				number[i] /= 2;
				times[i]++;
			}
			sum += times[i];
        }
      	
		System.out.println(sum);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力]
		int N = sc.nextInt();
		int[] number = new int[N];
		int[] times = new int[number.length];
		int sum = 0;
      
		for(int i=0; i<N; i++){
			number[i] = sc.nextInt();
			while(number[i]%2==0){
				number[i] /= 2;
				times[i]++;
			}
			sum += times[i];
        }
      	
		System.out.println(sum);
	} main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力]
		int N = sc.nextInt();
		int[] number = new int[N];
		int[] times = new int[number.length];
		int sum = 0;
      
		for(int i=0; i<N; i++){
			number[i] = sc.nextInt();
			while(number[i]%2==0){
				number[i] /= 2;
				times[i]++;
			}
			sum += times[i];
        }
      	
		System.out.println(sum);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] number = new int[N]; number new int[N] N int[] times = new int[number.length]; times new int[number.length] number.length number number.length int sum = 0; sum 0 for(int i=0; i<N; i++){
			number[i] = sc.nextInt();
			while(number[i]%2==0){
				number[i] /= 2;
				times[i]++;
			}
			sum += times[i];
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
			number[i] = sc.nextInt();
			while(number[i]%2==0){
				number[i] /= 2;
				times[i]++;
			}
			sum += times[i];
        } {
			number[i] = sc.nextInt();
			while(number[i]%2==0){
				number[i] /= 2;
				times[i]++;
			}
			sum += times[i];
        } number[i] = sc.nextInt() number[i] number i sc.nextInt() sc.nextInt sc while(number[i]%2==0){
				number[i] /= 2;
				times[i]++;
			} number[i]%2==0 number[i]%2 number[i] number i 2 0 {
				number[i] /= 2;
				times[i]++;
			} number[i] /= 2 number[i] number i 2 times[i]++ times[i] times i sum += times[i] sum times[i] times i System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力]
		int N = sc.nextInt();
		int[] number = new int[N];
		int[] times = new int[number.length];
		int sum = 0;
      
		for(int i=0; i<N; i++){
			number[i] = sc.nextInt();
			while(number[i]%2==0){
				number[i] /= 2;
				times[i]++;
			}
			sum += times[i];
        }
      	
		System.out.println(sum);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力]
		int N = sc.nextInt();
		int[] number = new int[N];
		int[] times = new int[number.length];
		int sum = 0;
      
		for(int i=0; i<N; i++){
			number[i] = sc.nextInt();
			while(number[i]%2==0){
				number[i] /= 2;
				times[i]++;
			}
			sum += times[i];
        }
      	
		System.out.println(sum);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力]
		int N = sc.nextInt();
		int[] number = new int[N];
		int[] times = new int[number.length];
		int sum = 0;
      
		for(int i=0; i<N; i++){
			number[i] = sc.nextInt();
			while(number[i]%2==0){
				number[i] /= 2;
				times[i]++;
			}
			sum += times[i];
        }
      	
		System.out.println(sum);
	}
}