import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] numberArray = new int[n];
		for(int i =0;i < n;i++) {
			numberArray[i] = sc.nextInt();
		}
		int answer =0;
		boolean continueFlg = true;
		while(continueFlg){
			for(int i = 0;i < n;i++) {
				if(numberArray[i] % 2 ==0) {
					numberArray[i] /= 2;
					if(i == n-1) {
						answer++;
					}
				}else {
					continueFlg = false;
					break;
				}
			}
		}
		System.out.println(answer);
	}
} import java.util.Scanner; Scanner java.util public class Main {

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

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] numberArray = new int[n];
		for(int i =0;i < n;i++) {
			numberArray[i] = sc.nextInt();
		}
		int answer =0;
		boolean continueFlg = true;
		while(continueFlg){
			for(int i = 0;i < n;i++) {
				if(numberArray[i] % 2 ==0) {
					numberArray[i] /= 2;
					if(i == n-1) {
						answer++;
					}
				}else {
					continueFlg = false;
					break;
				}
			}
		}
		System.out.println(answer);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] numberArray = new int[n];
		for(int i =0;i < n;i++) {
			numberArray[i] = sc.nextInt();
		}
		int answer =0;
		boolean continueFlg = true;
		while(continueFlg){
			for(int i = 0;i < n;i++) {
				if(numberArray[i] % 2 ==0) {
					numberArray[i] /= 2;
					if(i == n-1) {
						answer++;
					}
				}else {
					continueFlg = false;
					break;
				}
			}
		}
		System.out.println(answer);
	}
}