import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] A = new int[N];
		for(int i = 0; i < N; i++) {
			A[i] = stdIn.nextInt();
		}
		int count = 0;
		while(true) {
			for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}
				else {
					System.out.println(count);
					System.exit(0);
				}
			}
			count++;
		}

	}

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

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] A = new int[N];
		for(int i = 0; i < N; i++) {
			A[i] = stdIn.nextInt();
		}
		int count = 0;
		while(true) {
			for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}
				else {
					System.out.println(count);
					System.exit(0);
				}
			}
			count++;
		}

	}

} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] A = new int[N];
		for(int i = 0; i < N; i++) {
			A[i] = stdIn.nextInt();
		}
		int count = 0;
		while(true) {
			for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}
				else {
					System.out.println(count);
					System.exit(0);
				}
			}
			count++;
		}

	} main {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] A = new int[N];
		for(int i = 0; i < N; i++) {
			A[i] = stdIn.nextInt();
		}
		int count = 0;
		while(true) {
			for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}
				else {
					System.out.println(count);
					System.exit(0);
				}
			}
			count++;
		}

	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int N = stdIn.nextInt(); N stdIn.nextInt() stdIn.nextInt stdIn int[] A = new int[N]; A new int[N] N for(int i = 0; i < N; i++) {
			A[i] = stdIn.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			A[i] = stdIn.nextInt();
		} {
			A[i] = stdIn.nextInt();
		} A[i] = stdIn.nextInt() A[i] A i stdIn.nextInt() stdIn.nextInt stdIn int count = 0; count 0 while(true) {
			for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}
				else {
					System.out.println(count);
					System.exit(0);
				}
			}
			count++;
		} true {
			for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}
				else {
					System.out.println(count);
					System.exit(0);
				}
			}
			count++;
		} for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}
				else {
					System.out.println(count);
					System.exit(0);
				}
			} 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 {
					System.out.println(count);
					System.exit(0);
				}
			} {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}
				else {
					System.out.println(count);
					System.exit(0);
				}
			} if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}
				else {
					System.out.println(count);
					System.exit(0);
				} 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 {
					System.out.println(count);
					System.exit(0);
				} System.out.println(count) System.out.println System.out System System.out count System.exit(0) System.exit System 0 count++ count String[] args args public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] A = new int[N];
		for(int i = 0; i < N; i++) {
			A[i] = stdIn.nextInt();
		}
		int count = 0;
		while(true) {
			for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}
				else {
					System.out.println(count);
					System.exit(0);
				}
			}
			count++;
		}

	}

} public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] A = new int[N];
		for(int i = 0; i < N; i++) {
			A[i] = stdIn.nextInt();
		}
		int count = 0;
		while(true) {
			for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}
				else {
					System.out.println(count);
					System.exit(0);
				}
			}
			count++;
		}

	}

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

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] A = new int[N];
		for(int i = 0; i < N; i++) {
			A[i] = stdIn.nextInt();
		}
		int count = 0;
		while(true) {
			for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i]/2;
				}
				else {
					System.out.println(count);
					System.exit(0);
				}
			}
			count++;
		}

	}

}