import java.util.Scanner;

public class Main {
	static int dev(int[] a,int an){
		boolean flg = false;
		for(int i = 0;i < a.length;i++){
			if(a[i]%2 == 0){
				flg = true;
				while(a[i]%2 == 0){
				a[i] /= 2;
				an++;
				}
				break;
			}
		}
		if(flg)
			return dev(a,an);
		else
			return an;
	}
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n;
		n = sc.nextInt();
		int na[] = new int[n];
		for(int i = 0; i < n; i++)
			na[i] = sc.nextInt();

		System.out.println(dev(na,0));

	}
} import java.util.Scanner; Scanner java.util public class Main {
	static int dev(int[] a,int an){
		boolean flg = false;
		for(int i = 0;i < a.length;i++){
			if(a[i]%2 == 0){
				flg = true;
				while(a[i]%2 == 0){
				a[i] /= 2;
				an++;
				}
				break;
			}
		}
		if(flg)
			return dev(a,an);
		else
			return an;
	}
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n;
		n = sc.nextInt();
		int na[] = new int[n];
		for(int i = 0; i < n; i++)
			na[i] = sc.nextInt();

		System.out.println(dev(na,0));

	}
} Main static int dev(int[] a,int an){
		boolean flg = false;
		for(int i = 0;i < a.length;i++){
			if(a[i]%2 == 0){
				flg = true;
				while(a[i]%2 == 0){
				a[i] /= 2;
				an++;
				}
				break;
			}
		}
		if(flg)
			return dev(a,an);
		else
			return an;
	} dev {
		boolean flg = false;
		for(int i = 0;i < a.length;i++){
			if(a[i]%2 == 0){
				flg = true;
				while(a[i]%2 == 0){
				a[i] /= 2;
				an++;
				}
				break;
			}
		}
		if(flg)
			return dev(a,an);
		else
			return an;
	} boolean flg = false; flg false for(int i = 0;i < a.length;i++){
			if(a[i]%2 == 0){
				flg = true;
				while(a[i]%2 == 0){
				a[i] /= 2;
				an++;
				}
				break;
			}
		} int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i {
			if(a[i]%2 == 0){
				flg = true;
				while(a[i]%2 == 0){
				a[i] /= 2;
				an++;
				}
				break;
			}
		} {
			if(a[i]%2 == 0){
				flg = true;
				while(a[i]%2 == 0){
				a[i] /= 2;
				an++;
				}
				break;
			}
		} if(a[i]%2 == 0){
				flg = true;
				while(a[i]%2 == 0){
				a[i] /= 2;
				an++;
				}
				break;
			} a[i]%2 == 0 a[i]%2 a[i] a i 2 0 {
				flg = true;
				while(a[i]%2 == 0){
				a[i] /= 2;
				an++;
				}
				break;
			} flg = true flg true while(a[i]%2 == 0){
				a[i] /= 2;
				an++;
				} a[i]%2 == 0 a[i]%2 a[i] a i 2 0 {
				a[i] /= 2;
				an++;
				} a[i] /= 2 a[i] a i 2 an++ an break; if(flg)
			return dev(a,an);
		else
			return an; flg return dev(a,an); dev(a,an) dev a an return an; an int[] a a int an an public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n;
		n = sc.nextInt();
		int na[] = new int[n];
		for(int i = 0; i < n; i++)
			na[i] = sc.nextInt();

		System.out.println(dev(na,0));

	} main {

		Scanner sc = new Scanner(System.in);
		int n;
		n = sc.nextInt();
		int na[] = new int[n];
		for(int i = 0; i < n; i++)
			na[i] = sc.nextInt();

		System.out.println(dev(na,0));

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n; n n = sc.nextInt() n sc.nextInt() sc.nextInt sc int na[] = new int[n]; na new int[n] n for(int i = 0; i < n; i++)
			na[i] = sc.nextInt(); int i = 0; int i = 0; i 0 i < n i n i++ i++ i na[i] = sc.nextInt(); na[i] = sc.nextInt() na[i] na i sc.nextInt() sc.nextInt sc System.out.println(dev(na,0)) System.out.println System.out System System.out dev(na,0) dev na 0 String[] args args public class Main {
	static int dev(int[] a,int an){
		boolean flg = false;
		for(int i = 0;i < a.length;i++){
			if(a[i]%2 == 0){
				flg = true;
				while(a[i]%2 == 0){
				a[i] /= 2;
				an++;
				}
				break;
			}
		}
		if(flg)
			return dev(a,an);
		else
			return an;
	}
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n;
		n = sc.nextInt();
		int na[] = new int[n];
		for(int i = 0; i < n; i++)
			na[i] = sc.nextInt();

		System.out.println(dev(na,0));

	}
} public class Main {
	static int dev(int[] a,int an){
		boolean flg = false;
		for(int i = 0;i < a.length;i++){
			if(a[i]%2 == 0){
				flg = true;
				while(a[i]%2 == 0){
				a[i] /= 2;
				an++;
				}
				break;
			}
		}
		if(flg)
			return dev(a,an);
		else
			return an;
	}
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n;
		n = sc.nextInt();
		int na[] = new int[n];
		for(int i = 0; i < n; i++)
			na[i] = sc.nextInt();

		System.out.println(dev(na,0));

	}
} Main
import java.util.Scanner;

public class Main {
	static int dev(int[] a,int an){
		boolean flg = false;
		for(int i = 0;i < a.length;i++){
			if(a[i]%2 == 0){
				flg = true;
				while(a[i]%2 == 0){
				a[i] /= 2;
				an++;
				}
				break;
			}
		}
		if(flg)
			return dev(a,an);
		else
			return an;
	}
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n;
		n = sc.nextInt();
		int na[] = new int[n];
		for(int i = 0; i < n; i++)
			na[i] = sc.nextInt();

		System.out.println(dev(na,0));

	}
}
