import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception{
		Scanner input = new Scanner(System.in);
		
		int count = 0;
		boolean isEven = true;
		int N = input.nextInt();
		
		int[] A = new int[N];
		
		for(int i = 0; i < N; i++) {
			A[i] = input.nextInt();
			if(A[i]%2 == 1) isEven = false;
		}
		while(isEven) {
			count++;
			for(int i = 0; i < N; i++) {
				A[i] /= 2;
				if(A[i]%2 == 1) {
					isEven = false;
					break;
				}
			}
		}
		
		System.out.println(count);
		
		
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws Exception{
		Scanner input = new Scanner(System.in);
		
		int count = 0;
		boolean isEven = true;
		int N = input.nextInt();
		
		int[] A = new int[N];
		
		for(int i = 0; i < N; i++) {
			A[i] = input.nextInt();
			if(A[i]%2 == 1) isEven = false;
		}
		while(isEven) {
			count++;
			for(int i = 0; i < N; i++) {
				A[i] /= 2;
				if(A[i]%2 == 1) {
					isEven = false;
					break;
				}
			}
		}
		
		System.out.println(count);
		
		
	}

} Main public static void main(String[] args) throws Exception{
		Scanner input = new Scanner(System.in);
		
		int count = 0;
		boolean isEven = true;
		int N = input.nextInt();
		
		int[] A = new int[N];
		
		for(int i = 0; i < N; i++) {
			A[i] = input.nextInt();
			if(A[i]%2 == 1) isEven = false;
		}
		while(isEven) {
			count++;
			for(int i = 0; i < N; i++) {
				A[i] /= 2;
				if(A[i]%2 == 1) {
					isEven = false;
					break;
				}
			}
		}
		
		System.out.println(count);
		
		
	} main {
		Scanner input = new Scanner(System.in);
		
		int count = 0;
		boolean isEven = true;
		int N = input.nextInt();
		
		int[] A = new int[N];
		
		for(int i = 0; i < N; i++) {
			A[i] = input.nextInt();
			if(A[i]%2 == 1) isEven = false;
		}
		while(isEven) {
			count++;
			for(int i = 0; i < N; i++) {
				A[i] /= 2;
				if(A[i]%2 == 1) {
					isEven = false;
					break;
				}
			}
		}
		
		System.out.println(count);
		
		
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) int count = 0; count 0 boolean isEven = true; isEven true int N = input.nextInt(); N input.nextInt() input.nextInt input int[] A = new int[N]; A new int[N] N for(int i = 0; i < N; i++) {
			A[i] = input.nextInt();
			if(A[i]%2 == 1) isEven = false;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			A[i] = input.nextInt();
			if(A[i]%2 == 1) isEven = false;
		} {
			A[i] = input.nextInt();
			if(A[i]%2 == 1) isEven = false;
		} A[i] = input.nextInt() A[i] A i input.nextInt() input.nextInt input if(A[i]%2 == 1) isEven = false; A[i]%2 == 1 A[i]%2 A[i] A i 2 1 isEven = false isEven false while(isEven) {
			count++;
			for(int i = 0; i < N; i++) {
				A[i] /= 2;
				if(A[i]%2 == 1) {
					isEven = false;
					break;
				}
			}
		} isEven {
			count++;
			for(int i = 0; i < N; i++) {
				A[i] /= 2;
				if(A[i]%2 == 1) {
					isEven = false;
					break;
				}
			}
		} count++ count for(int i = 0; i < N; i++) {
				A[i] /= 2;
				if(A[i]%2 == 1) {
					isEven = false;
					break;
				}
			} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
				A[i] /= 2;
				if(A[i]%2 == 1) {
					isEven = false;
					break;
				}
			} {
				A[i] /= 2;
				if(A[i]%2 == 1) {
					isEven = false;
					break;
				}
			} A[i] /= 2 A[i] A i 2 if(A[i]%2 == 1) {
					isEven = false;
					break;
				} A[i]%2 == 1 A[i]%2 A[i] A i 2 1 {
					isEven = false;
					break;
				} isEven = false isEven false break; System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

	public static void main(String[] args) throws Exception{
		Scanner input = new Scanner(System.in);
		
		int count = 0;
		boolean isEven = true;
		int N = input.nextInt();
		
		int[] A = new int[N];
		
		for(int i = 0; i < N; i++) {
			A[i] = input.nextInt();
			if(A[i]%2 == 1) isEven = false;
		}
		while(isEven) {
			count++;
			for(int i = 0; i < N; i++) {
				A[i] /= 2;
				if(A[i]%2 == 1) {
					isEven = false;
					break;
				}
			}
		}
		
		System.out.println(count);
		
		
	}

} public class Main {

	public static void main(String[] args) throws Exception{
		Scanner input = new Scanner(System.in);
		
		int count = 0;
		boolean isEven = true;
		int N = input.nextInt();
		
		int[] A = new int[N];
		
		for(int i = 0; i < N; i++) {
			A[i] = input.nextInt();
			if(A[i]%2 == 1) isEven = false;
		}
		while(isEven) {
			count++;
			for(int i = 0; i < N; i++) {
				A[i] /= 2;
				if(A[i]%2 == 1) {
					isEven = false;
					break;
				}
			}
		}
		
		System.out.println(count);
		
		
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception{
		Scanner input = new Scanner(System.in);
		
		int count = 0;
		boolean isEven = true;
		int N = input.nextInt();
		
		int[] A = new int[N];
		
		for(int i = 0; i < N; i++) {
			A[i] = input.nextInt();
			if(A[i]%2 == 1) isEven = false;
		}
		while(isEven) {
			count++;
			for(int i = 0; i < N; i++) {
				A[i] /= 2;
				if(A[i]%2 == 1) {
					isEven = false;
					break;
				}
			}
		}
		
		System.out.println(count);
		
		
	}

}
