import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	int n;
	int A[];
	public void run() {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		A = new int[n];
		for(int i=0; i<n; i++) {
			A[i]=sc.nextInt();
		}

		int ans=0;
		boolean cont=true;
		while(cont) {
			for(int i=0; i<n; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}else {
					cont=false;
					break;
				}
			}
			if(cont)ans++;
		}
		System.out.println(ans);
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	int n;
	int A[];
	public void run() {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		A = new int[n];
		for(int i=0; i<n; i++) {
			A[i]=sc.nextInt();
		}

		int ans=0;
		boolean cont=true;
		while(cont) {
			for(int i=0; i<n; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}else {
					cont=false;
					break;
				}
			}
			if(cont)ans++;
		}
		System.out.println(ans);
		sc.close();
	}
} Main int n; n int A[]; A public static void main(String[] args) {
		Main main = new Main();
		main.run();
	} main {
		Main main = new Main();
		main.run();
	} Main main = new Main(); main new Main() main.run() main.run main String[] args args public void run() {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		A = new int[n];
		for(int i=0; i<n; i++) {
			A[i]=sc.nextInt();
		}

		int ans=0;
		boolean cont=true;
		while(cont) {
			for(int i=0; i<n; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}else {
					cont=false;
					break;
				}
			}
			if(cont)ans++;
		}
		System.out.println(ans);
		sc.close();
	} run {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		A = new int[n];
		for(int i=0; i<n; i++) {
			A[i]=sc.nextInt();
		}

		int ans=0;
		boolean cont=true;
		while(cont) {
			for(int i=0; i<n; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}else {
					cont=false;
					break;
				}
			}
			if(cont)ans++;
		}
		System.out.println(ans);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc A = new int[n] A new int[n] n for(int i=0; i<n; i++) {
			A[i]=sc.nextInt();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			A[i]=sc.nextInt();
		} {
			A[i]=sc.nextInt();
		} A[i]=sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc int ans=0; ans 0 boolean cont=true; cont true while(cont) {
			for(int i=0; i<n; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}else {
					cont=false;
					break;
				}
			}
			if(cont)ans++;
		} cont {
			for(int i=0; i<n; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}else {
					cont=false;
					break;
				}
			}
			if(cont)ans++;
		} for(int i=0; i<n; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}else {
					cont=false;
					break;
				}
			} int i=0; int i=0; i 0 i<n i n i++ i++ i {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}else {
					cont=false;
					break;
				}
			} {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}else {
					cont=false;
					break;
				}
			} if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}else {
					cont=false;
					break;
				} A[i] % 2 == 0 A[i] % 2 A[i] A i 2 0 {
					A[i] = A[i]/2;
				} A[i] = A[i]/2 A[i] A i A[i]/2 A[i] A i 2 {
					cont=false;
					break;
				} cont=false cont false break; if(cont)ans++; cont ans++ ans System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	int n;
	int A[];
	public void run() {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		A = new int[n];
		for(int i=0; i<n; i++) {
			A[i]=sc.nextInt();
		}

		int ans=0;
		boolean cont=true;
		while(cont) {
			for(int i=0; i<n; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}else {
					cont=false;
					break;
				}
			}
			if(cont)ans++;
		}
		System.out.println(ans);
		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	int n;
	int A[];
	public void run() {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		A = new int[n];
		for(int i=0; i<n; i++) {
			A[i]=sc.nextInt();
		}

		int ans=0;
		boolean cont=true;
		while(cont) {
			for(int i=0; i<n; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}else {
					cont=false;
					break;
				}
			}
			if(cont)ans++;
		}
		System.out.println(ans);
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	int n;
	int A[];
	public void run() {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		A = new int[n];
		for(int i=0; i<n; i++) {
			A[i]=sc.nextInt();
		}

		int ans=0;
		boolean cont=true;
		while(cont) {
			for(int i=0; i<n; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}else {
					cont=false;
					break;
				}
			}
			if(cont)ans++;
		}
		System.out.println(ans);
		sc.close();
	}
}
