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) {
			boolean odd = false;
			for(int i = 0; i < N; i++) {
				if(A[i]%2 != 0) odd = true;
			}
			if(odd) break;
			for(int i = 0; i < N; i++) {
				A[i] /= 2;
			}
			count++;
		}
		System.out.println(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) {
			boolean odd = false;
			for(int i = 0; i < N; i++) {
				if(A[i]%2 != 0) odd = true;
			}
			if(odd) break;
			for(int i = 0; i < N; i++) {
				A[i] /= 2;
			}
			count++;
		}
		System.out.println(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) {
			boolean odd = false;
			for(int i = 0; i < N; i++) {
				if(A[i]%2 != 0) odd = true;
			}
			if(odd) break;
			for(int i = 0; i < N; i++) {
				A[i] /= 2;
			}
			count++;
		}
		System.out.println(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) {
			boolean odd = false;
			for(int i = 0; i < N; i++) {
				if(A[i]%2 != 0) odd = true;
			}
			if(odd) break;
			for(int i = 0; i < N; i++) {
				A[i] /= 2;
			}
			count++;
		}
		System.out.println(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) {
			boolean odd = false;
			for(int i = 0; i < N; i++) {
				if(A[i]%2 != 0) odd = true;
			}
			if(odd) break;
			for(int i = 0; i < N; i++) {
				A[i] /= 2;
			}
			count++;
		} true {
			boolean odd = false;
			for(int i = 0; i < N; i++) {
				if(A[i]%2 != 0) odd = true;
			}
			if(odd) break;
			for(int i = 0; i < N; i++) {
				A[i] /= 2;
			}
			count++;
		} boolean odd = false; odd false for(int i = 0; i < N; i++) {
				if(A[i]%2 != 0) odd = true;
			} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
				if(A[i]%2 != 0) odd = true;
			} {
				if(A[i]%2 != 0) odd = true;
			} if(A[i]%2 != 0) odd = true; A[i]%2 != 0 A[i]%2 A[i] A i 2 0 odd = true odd true if(odd) break; odd break; for(int i = 0; i < N; i++) {
				A[i] /= 2;
			} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
				A[i] /= 2;
			} {
				A[i] /= 2;
			} A[i] /= 2 A[i] A i 2 count++ count 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) {
		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) {
			boolean odd = false;
			for(int i = 0; i < N; i++) {
				if(A[i]%2 != 0) odd = true;
			}
			if(odd) break;
			for(int i = 0; i < N; i++) {
				A[i] /= 2;
			}
			count++;
		}
		System.out.println(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) {
			boolean odd = false;
			for(int i = 0; i < N; i++) {
				if(A[i]%2 != 0) odd = true;
			}
			if(odd) break;
			for(int i = 0; i < N; i++) {
				A[i] /= 2;
			}
			count++;
		}
		System.out.println(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) {
			boolean odd = false;
			for(int i = 0; i < N; i++) {
				if(A[i]%2 != 0) odd = true;
			}
			if(odd) break;
			for(int i = 0; i < N; i++) {
				A[i] /= 2;
			}
			count++;
		}
		System.out.println(count);
	}

}