import java.util.Scanner;

class Main{


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);			//文字の入力
		int n = sc.nextInt();
		long[] a = new long[n];
		for(int i = 0;i < n;i++){
			a[i] = sc.nextLong();
		}
		long ans = 0;
		for(int  i = 0;i < n;i++){
			while(a[i] != 0){
				if(a[i] % 2 == 0){
					a[i] = a[i]/2;
					ans++;
				}else{
					break;
				}
			}
		}
		System.out.println(ans);



	}
	static long sum(long n){
		long l =  String.valueOf(n).length();
		long s = 0l;
		for(int i = 0;i < l;i++){
			s +=  (long)(n/Math.pow(10, l-1-i));
			n -= (long)Math.pow(10, l-1-i) *(long)(n/Math.pow(10, l-1-i));
		}

		return s;


	}

}

class Pair implements Comparable{
	int from;		//p
	int end;		//y
	int num;
	int bango;
	@Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return from - otherpair.from;
	}
}
 import java.util.Scanner; Scanner java.util class Main{


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);			//文字の入力
		int n = sc.nextInt();
		long[] a = new long[n];
		for(int i = 0;i < n;i++){
			a[i] = sc.nextLong();
		}
		long ans = 0;
		for(int  i = 0;i < n;i++){
			while(a[i] != 0){
				if(a[i] % 2 == 0){
					a[i] = a[i]/2;
					ans++;
				}else{
					break;
				}
			}
		}
		System.out.println(ans);



	}
	static long sum(long n){
		long l =  String.valueOf(n).length();
		long s = 0l;
		for(int i = 0;i < l;i++){
			s +=  (long)(n/Math.pow(10, l-1-i));
			n -= (long)Math.pow(10, l-1-i) *(long)(n/Math.pow(10, l-1-i));
		}

		return s;


	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);			//文字の入力
		int n = sc.nextInt();
		long[] a = new long[n];
		for(int i = 0;i < n;i++){
			a[i] = sc.nextLong();
		}
		long ans = 0;
		for(int  i = 0;i < n;i++){
			while(a[i] != 0){
				if(a[i] % 2 == 0){
					a[i] = a[i]/2;
					ans++;
				}else{
					break;
				}
			}
		}
		System.out.println(ans);



	} main {
		Scanner sc = new Scanner(System.in);			//文字の入力
		int n = sc.nextInt();
		long[] a = new long[n];
		for(int i = 0;i < n;i++){
			a[i] = sc.nextLong();
		}
		long ans = 0;
		for(int  i = 0;i < n;i++){
			while(a[i] != 0){
				if(a[i] % 2 == 0){
					a[i] = a[i]/2;
					ans++;
				}else{
					break;
				}
			}
		}
		System.out.println(ans);



	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc long[] a = new long[n]; a new long[n] n for(int i = 0;i < n;i++){
			a[i] = sc.nextLong();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			a[i] = sc.nextLong();
		} {
			a[i] = sc.nextLong();
		} a[i] = sc.nextLong() a[i] a i sc.nextLong() sc.nextLong sc long ans = 0; ans 0 for(int  i = 0;i < n;i++){
			while(a[i] != 0){
				if(a[i] % 2 == 0){
					a[i] = a[i]/2;
					ans++;
				}else{
					break;
				}
			}
		} int  i = 0; int  i = 0; i 0 i < n i n i++ i++ i {
			while(a[i] != 0){
				if(a[i] % 2 == 0){
					a[i] = a[i]/2;
					ans++;
				}else{
					break;
				}
			}
		} {
			while(a[i] != 0){
				if(a[i] % 2 == 0){
					a[i] = a[i]/2;
					ans++;
				}else{
					break;
				}
			}
		} while(a[i] != 0){
				if(a[i] % 2 == 0){
					a[i] = a[i]/2;
					ans++;
				}else{
					break;
				}
			} a[i] != 0 a[i] a i 0 {
				if(a[i] % 2 == 0){
					a[i] = a[i]/2;
					ans++;
				}else{
					break;
				}
			} if(a[i] % 2 == 0){
					a[i] = a[i]/2;
					ans++;
				}else{
					break;
				} a[i] % 2 == 0 a[i] % 2 a[i] a i 2 0 {
					a[i] = a[i]/2;
					ans++;
				} a[i] = a[i]/2 a[i] a i a[i]/2 a[i] a i 2 ans++ ans {
					break;
				} break; System.out.println(ans) System.out.println System.out System System.out ans String[] args args static long sum(long n){
		long l =  String.valueOf(n).length();
		long s = 0l;
		for(int i = 0;i < l;i++){
			s +=  (long)(n/Math.pow(10, l-1-i));
			n -= (long)Math.pow(10, l-1-i) *(long)(n/Math.pow(10, l-1-i));
		}

		return s;


	} sum {
		long l =  String.valueOf(n).length();
		long s = 0l;
		for(int i = 0;i < l;i++){
			s +=  (long)(n/Math.pow(10, l-1-i));
			n -= (long)Math.pow(10, l-1-i) *(long)(n/Math.pow(10, l-1-i));
		}

		return s;


	} long l =  String.valueOf(n).length(); l String.valueOf(n).length() String.valueOf(n).length String.valueOf(n) String.valueOf String n long s = 0l; s 0l for(int i = 0;i < l;i++){
			s +=  (long)(n/Math.pow(10, l-1-i));
			n -= (long)Math.pow(10, l-1-i) *(long)(n/Math.pow(10, l-1-i));
		} int i = 0; int i = 0; i 0 i < l i l i++ i++ i {
			s +=  (long)(n/Math.pow(10, l-1-i));
			n -= (long)Math.pow(10, l-1-i) *(long)(n/Math.pow(10, l-1-i));
		} {
			s +=  (long)(n/Math.pow(10, l-1-i));
			n -= (long)Math.pow(10, l-1-i) *(long)(n/Math.pow(10, l-1-i));
		} s +=  (long)(n/Math.pow(10, l-1-i)) s (long)(n/Math.pow(10, l-1-i)) n Math.pow(10, l-1-i) Math.pow Math 10 l-1-i l-1-i l 1 i n -= (long)Math.pow(10, l-1-i) *(long)(n/Math.pow(10, l-1-i)) n (long)Math.pow(10, l-1-i) *(long)(n/Math.pow(10, l-1-i)) (long)Math.pow(10, l-1-i) Math.pow Math 10 l-1-i l-1-i l 1 i (long)(n/Math.pow(10, l-1-i)) n Math.pow(10, l-1-i) Math.pow Math 10 l-1-i l-1-i l 1 i return s; s long n n class Pair implements Comparable{
	int from;		//p
	int end;		//y
	int num;
	int bango;
	@Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return from - otherpair.from;
	}
} Pair int from;		//p from int end;		//y end int num; num int bango; bango @Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return from - otherpair.from;
	} compareTo {
		Pair otherpair = (Pair)other;

		return from - otherpair.from;
	} Pair otherpair = (Pair)other; otherpair (Pair)other return from - otherpair.from; from - otherpair.from from otherpair.from otherpair otherpair.from Object other other Comparable
import java.util.Scanner;

class Main{


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);			//文字の入力
		int n = sc.nextInt();
		long[] a = new long[n];
		for(int i = 0;i < n;i++){
			a[i] = sc.nextLong();
		}
		long ans = 0;
		for(int  i = 0;i < n;i++){
			while(a[i] != 0){
				if(a[i] % 2 == 0){
					a[i] = a[i]/2;
					ans++;
				}else{
					break;
				}
			}
		}
		System.out.println(ans);



	}
	static long sum(long n){
		long l =  String.valueOf(n).length();
		long s = 0l;
		for(int i = 0;i < l;i++){
			s +=  (long)(n/Math.pow(10, l-1-i));
			n -= (long)Math.pow(10, l-1-i) *(long)(n/Math.pow(10, l-1-i));
		}

		return s;


	}

}

class Pair implements Comparable{
	int from;		//p
	int end;		//y
	int num;
	int bango;
	@Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return from - otherpair.from;
	}
}

