import java.util.*;
public class Main { 
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		long ans = 0;
		int n = sc.nextInt();
		long[] a = new long[n];
		for(int i = 0; i < n; i++) {
			long tp = sc.nextLong();
			a[i] =  tp;
		}
		for(int i = 0; i < n; i++) {
			for(;;) {
				if(a[i] % 2 == 1 || a[i] / 2 < 1) {
					break;
				}
				ans += 1;
				a[i] = a[i]/2; 
			}
		}
		System.out.println(ans);
     }
} import java.util.*; util.* java public class Main { 
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		long ans = 0;
		int n = sc.nextInt();
		long[] a = new long[n];
		for(int i = 0; i < n; i++) {
			long tp = sc.nextLong();
			a[i] =  tp;
		}
		for(int i = 0; i < n; i++) {
			for(;;) {
				if(a[i] % 2 == 1 || a[i] / 2 < 1) {
					break;
				}
				ans += 1;
				a[i] = a[i]/2; 
			}
		}
		System.out.println(ans);
     }
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		long ans = 0;
		int n = sc.nextInt();
		long[] a = new long[n];
		for(int i = 0; i < n; i++) {
			long tp = sc.nextLong();
			a[i] =  tp;
		}
		for(int i = 0; i < n; i++) {
			for(;;) {
				if(a[i] % 2 == 1 || a[i] / 2 < 1) {
					break;
				}
				ans += 1;
				a[i] = a[i]/2; 
			}
		}
		System.out.println(ans);
     } main {
		Scanner sc = new Scanner(System.in);
		long ans = 0;
		int n = sc.nextInt();
		long[] a = new long[n];
		for(int i = 0; i < n; i++) {
			long tp = sc.nextLong();
			a[i] =  tp;
		}
		for(int i = 0; i < n; i++) {
			for(;;) {
				if(a[i] % 2 == 1 || a[i] / 2 < 1) {
					break;
				}
				ans += 1;
				a[i] = a[i]/2; 
			}
		}
		System.out.println(ans);
     } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long ans = 0; ans 0 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++) {
			long tp = sc.nextLong();
			a[i] =  tp;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			long tp = sc.nextLong();
			a[i] =  tp;
		} {
			long tp = sc.nextLong();
			a[i] =  tp;
		} long tp = sc.nextLong(); tp sc.nextLong() sc.nextLong sc a[i] =  tp a[i] a i tp for(int i = 0; i < n; i++) {
			for(;;) {
				if(a[i] % 2 == 1 || a[i] / 2 < 1) {
					break;
				}
				ans += 1;
				a[i] = a[i]/2; 
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for(;;) {
				if(a[i] % 2 == 1 || a[i] / 2 < 1) {
					break;
				}
				ans += 1;
				a[i] = a[i]/2; 
			}
		} {
			for(;;) {
				if(a[i] % 2 == 1 || a[i] / 2 < 1) {
					break;
				}
				ans += 1;
				a[i] = a[i]/2; 
			}
		} for(;;) {
				if(a[i] % 2 == 1 || a[i] / 2 < 1) {
					break;
				}
				ans += 1;
				a[i] = a[i]/2; 
			} ; {
				if(a[i] % 2 == 1 || a[i] / 2 < 1) {
					break;
				}
				ans += 1;
				a[i] = a[i]/2; 
			} {
				if(a[i] % 2 == 1 || a[i] / 2 < 1) {
					break;
				}
				ans += 1;
				a[i] = a[i]/2; 
			} if(a[i] % 2 == 1 || a[i] / 2 < 1) {
					break;
				} a[i] % 2 == 1 || a[i] / 2 < 1 a[i] % 2 == 1 a[i] % 2 a[i] a i 2 1 a[i] / 2 < 1 a[i] / 2 a[i] a i 2 1 {
					break;
				} break; ans += 1 ans 1 a[i] = a[i]/2 a[i] a i a[i]/2 a[i] a i 2 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main { 
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		long ans = 0;
		int n = sc.nextInt();
		long[] a = new long[n];
		for(int i = 0; i < n; i++) {
			long tp = sc.nextLong();
			a[i] =  tp;
		}
		for(int i = 0; i < n; i++) {
			for(;;) {
				if(a[i] % 2 == 1 || a[i] / 2 < 1) {
					break;
				}
				ans += 1;
				a[i] = a[i]/2; 
			}
		}
		System.out.println(ans);
     }
} public class Main { 
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		long ans = 0;
		int n = sc.nextInt();
		long[] a = new long[n];
		for(int i = 0; i < n; i++) {
			long tp = sc.nextLong();
			a[i] =  tp;
		}
		for(int i = 0; i < n; i++) {
			for(;;) {
				if(a[i] % 2 == 1 || a[i] / 2 < 1) {
					break;
				}
				ans += 1;
				a[i] = a[i]/2; 
			}
		}
		System.out.println(ans);
     }
} Main
import java.util.*;
public class Main { 
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		long ans = 0;
		int n = sc.nextInt();
		long[] a = new long[n];
		for(int i = 0; i < n; i++) {
			long tp = sc.nextLong();
			a[i] =  tp;
		}
		for(int i = 0; i < n; i++) {
			for(;;) {
				if(a[i] % 2 == 1 || a[i] / 2 < 1) {
					break;
				}
				ans += 1;
				a[i] = a[i]/2; 
			}
		}
		System.out.println(ans);
     }
}