import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine());
		String[] strA = sc.nextLine().split(" ");
		int ans = 0;
		for(int i=0; i<N; i++) {
			ans += half(Integer.parseInt(strA[i]), 0);
		}
		System.out.println(ans);
		sc.close();
	}

	private static int half(int num, int count) {
		if(num % 2 == 0) {
			count++;
			count = half(num / 2, count);
		}
		return count;
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine());
		String[] strA = sc.nextLine().split(" ");
		int ans = 0;
		for(int i=0; i<N; i++) {
			ans += half(Integer.parseInt(strA[i]), 0);
		}
		System.out.println(ans);
		sc.close();
	}

	private static int half(int num, int count) {
		if(num % 2 == 0) {
			count++;
			count = half(num / 2, count);
		}
		return count;
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine());
		String[] strA = sc.nextLine().split(" ");
		int ans = 0;
		for(int i=0; i<N; i++) {
			ans += half(Integer.parseInt(strA[i]), 0);
		}
		System.out.println(ans);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine());
		String[] strA = sc.nextLine().split(" ");
		int ans = 0;
		for(int i=0; i<N; i++) {
			ans += half(Integer.parseInt(strA[i]), 0);
		}
		System.out.println(ans);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.nextLine()); N Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc String[] strA = sc.nextLine().split(" "); strA sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int ans = 0; ans 0 for(int i=0; i<N; i++) {
			ans += half(Integer.parseInt(strA[i]), 0);
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			ans += half(Integer.parseInt(strA[i]), 0);
		} {
			ans += half(Integer.parseInt(strA[i]), 0);
		} ans += half(Integer.parseInt(strA[i]), 0) ans half(Integer.parseInt(strA[i]), 0) half Integer.parseInt(strA[i]) Integer.parseInt Integer strA[i] strA i 0 System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc String[] args args private static int half(int num, int count) {
		if(num % 2 == 0) {
			count++;
			count = half(num / 2, count);
		}
		return count;
	} half {
		if(num % 2 == 0) {
			count++;
			count = half(num / 2, count);
		}
		return count;
	} if(num % 2 == 0) {
			count++;
			count = half(num / 2, count);
		} num % 2 == 0 num % 2 num 2 0 {
			count++;
			count = half(num / 2, count);
		} count++ count count = half(num / 2, count) count half(num / 2, count) half num / 2 num 2 count return count; count int num num int count count public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine());
		String[] strA = sc.nextLine().split(" ");
		int ans = 0;
		for(int i=0; i<N; i++) {
			ans += half(Integer.parseInt(strA[i]), 0);
		}
		System.out.println(ans);
		sc.close();
	}

	private static int half(int num, int count) {
		if(num % 2 == 0) {
			count++;
			count = half(num / 2, count);
		}
		return count;
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine());
		String[] strA = sc.nextLine().split(" ");
		int ans = 0;
		for(int i=0; i<N; i++) {
			ans += half(Integer.parseInt(strA[i]), 0);
		}
		System.out.println(ans);
		sc.close();
	}

	private static int half(int num, int count) {
		if(num % 2 == 0) {
			count++;
			count = half(num / 2, count);
		}
		return count;
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine());
		String[] strA = sc.nextLine().split(" ");
		int ans = 0;
		for(int i=0; i<N; i++) {
			ans += half(Integer.parseInt(strA[i]), 0);
		}
		System.out.println(ans);
		sc.close();
	}

	private static int half(int num, int count) {
		if(num % 2 == 0) {
			count++;
			count = half(num / 2, count);
		}
		return count;
	}
}