import java.util.Scanner;

public class Main {

	public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);
		int answer = 0;
		int count = sc.nextInt();
		boolean endFlg = false;

		long[] nubmerList = new long[count];
		for(int i = 0; i < count; i++) {
			nubmerList[i] = sc.nextLong();
		}
		while(true) {
			for(int i = 0; i < count; i++) {
				if(nubmerList[i] % 2 == 1) {
					endFlg = true;
					break;
				}else {
					nubmerList[i] = nubmerList[i]/2;
				}
			}
			if(!endFlg) {
				answer++;
			}else {
				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 answer = 0;
		int count = sc.nextInt();
		boolean endFlg = false;

		long[] nubmerList = new long[count];
		for(int i = 0; i < count; i++) {
			nubmerList[i] = sc.nextLong();
		}
		while(true) {
			for(int i = 0; i < count; i++) {
				if(nubmerList[i] % 2 == 1) {
					endFlg = true;
					break;
				}else {
					nubmerList[i] = nubmerList[i]/2;
				}
			}
			if(!endFlg) {
				answer++;
			}else {
				break;
			}
		}

		System.out.println(answer);
	}
} Main public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);
		int answer = 0;
		int count = sc.nextInt();
		boolean endFlg = false;

		long[] nubmerList = new long[count];
		for(int i = 0; i < count; i++) {
			nubmerList[i] = sc.nextLong();
		}
		while(true) {
			for(int i = 0; i < count; i++) {
				if(nubmerList[i] % 2 == 1) {
					endFlg = true;
					break;
				}else {
					nubmerList[i] = nubmerList[i]/2;
				}
			}
			if(!endFlg) {
				answer++;
			}else {
				break;
			}
		}

		System.out.println(answer);
	} main {


		Scanner sc = new Scanner(System.in);
		int answer = 0;
		int count = sc.nextInt();
		boolean endFlg = false;

		long[] nubmerList = new long[count];
		for(int i = 0; i < count; i++) {
			nubmerList[i] = sc.nextLong();
		}
		while(true) {
			for(int i = 0; i < count; i++) {
				if(nubmerList[i] % 2 == 1) {
					endFlg = true;
					break;
				}else {
					nubmerList[i] = nubmerList[i]/2;
				}
			}
			if(!endFlg) {
				answer++;
			}else {
				break;
			}
		}

		System.out.println(answer);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int answer = 0; answer 0 int count = sc.nextInt(); count sc.nextInt() sc.nextInt sc boolean endFlg = false; endFlg false long[] nubmerList = new long[count]; nubmerList new long[count] count for(int i = 0; i < count; i++) {
			nubmerList[i] = sc.nextLong();
		} int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
			nubmerList[i] = sc.nextLong();
		} {
			nubmerList[i] = sc.nextLong();
		} nubmerList[i] = sc.nextLong() nubmerList[i] nubmerList i sc.nextLong() sc.nextLong sc while(true) {
			for(int i = 0; i < count; i++) {
				if(nubmerList[i] % 2 == 1) {
					endFlg = true;
					break;
				}else {
					nubmerList[i] = nubmerList[i]/2;
				}
			}
			if(!endFlg) {
				answer++;
			}else {
				break;
			}
		} true {
			for(int i = 0; i < count; i++) {
				if(nubmerList[i] % 2 == 1) {
					endFlg = true;
					break;
				}else {
					nubmerList[i] = nubmerList[i]/2;
				}
			}
			if(!endFlg) {
				answer++;
			}else {
				break;
			}
		} for(int i = 0; i < count; i++) {
				if(nubmerList[i] % 2 == 1) {
					endFlg = true;
					break;
				}else {
					nubmerList[i] = nubmerList[i]/2;
				}
			} int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
				if(nubmerList[i] % 2 == 1) {
					endFlg = true;
					break;
				}else {
					nubmerList[i] = nubmerList[i]/2;
				}
			} {
				if(nubmerList[i] % 2 == 1) {
					endFlg = true;
					break;
				}else {
					nubmerList[i] = nubmerList[i]/2;
				}
			} if(nubmerList[i] % 2 == 1) {
					endFlg = true;
					break;
				}else {
					nubmerList[i] = nubmerList[i]/2;
				} nubmerList[i] % 2 == 1 nubmerList[i] % 2 nubmerList[i] nubmerList i 2 1 {
					endFlg = true;
					break;
				} endFlg = true endFlg true break; {
					nubmerList[i] = nubmerList[i]/2;
				} nubmerList[i] = nubmerList[i]/2 nubmerList[i] nubmerList i nubmerList[i]/2 nubmerList[i] nubmerList i 2 if(!endFlg) {
				answer++;
			}else {
				break;
			} !endFlg endFlg {
				answer++;
			} answer++ answer {
				break;
			} 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 answer = 0;
		int count = sc.nextInt();
		boolean endFlg = false;

		long[] nubmerList = new long[count];
		for(int i = 0; i < count; i++) {
			nubmerList[i] = sc.nextLong();
		}
		while(true) {
			for(int i = 0; i < count; i++) {
				if(nubmerList[i] % 2 == 1) {
					endFlg = true;
					break;
				}else {
					nubmerList[i] = nubmerList[i]/2;
				}
			}
			if(!endFlg) {
				answer++;
			}else {
				break;
			}
		}

		System.out.println(answer);
	}
} public class Main {

	public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);
		int answer = 0;
		int count = sc.nextInt();
		boolean endFlg = false;

		long[] nubmerList = new long[count];
		for(int i = 0; i < count; i++) {
			nubmerList[i] = sc.nextLong();
		}
		while(true) {
			for(int i = 0; i < count; i++) {
				if(nubmerList[i] % 2 == 1) {
					endFlg = true;
					break;
				}else {
					nubmerList[i] = nubmerList[i]/2;
				}
			}
			if(!endFlg) {
				answer++;
			}else {
				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 answer = 0;
		int count = sc.nextInt();
		boolean endFlg = false;

		long[] nubmerList = new long[count];
		for(int i = 0; i < count; i++) {
			nubmerList[i] = sc.nextLong();
		}
		while(true) {
			for(int i = 0; i < count; i++) {
				if(nubmerList[i] % 2 == 1) {
					endFlg = true;
					break;
				}else {
					nubmerList[i] = nubmerList[i]/2;
				}
			}
			if(!endFlg) {
				answer++;
			}else {
				break;
			}
		}

		System.out.println(answer);
	}
}