import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int counter = 0;
		int A[] = new int[N];
		for (int i = 0; i < N; i++) {
			A[i] = sc.nextInt();
		}

		boolean flg = true;
		while (flg) {
			for (int i = 0; i < N; i++) {
				if (A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					flg = false;
					break;
				}
				if (i == N - 1) counter++;
			}
		}
		System.out.println(counter);
	}
} 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 counter = 0;
		int A[] = new int[N];
		for (int i = 0; i < N; i++) {
			A[i] = sc.nextInt();
		}

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

		boolean flg = true;
		while (flg) {
			for (int i = 0; i < N; i++) {
				if (A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					flg = false;
					break;
				}
				if (i == N - 1) counter++;
			}
		}
		System.out.println(counter);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int counter = 0;
		int A[] = new int[N];
		for (int i = 0; i < N; i++) {
			A[i] = sc.nextInt();
		}

		boolean flg = true;
		while (flg) {
			for (int i = 0; i < N; i++) {
				if (A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					flg = false;
					break;
				}
				if (i == N - 1) counter++;
			}
		}
		System.out.println(counter);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int counter = 0; counter 0 int A[] = new int[N]; A new int[N] N for (int i = 0; i < N; i++) {
			A[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			A[i] = sc.nextInt();
		} {
			A[i] = sc.nextInt();
		} A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc boolean flg = true; flg true while (flg) {
			for (int i = 0; i < N; i++) {
				if (A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					flg = false;
					break;
				}
				if (i == N - 1) counter++;
			}
		} flg {
			for (int i = 0; i < N; i++) {
				if (A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					flg = false;
					break;
				}
				if (i == N - 1) counter++;
			}
		} for (int i = 0; i < N; i++) {
				if (A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					flg = false;
					break;
				}
				if (i == N - 1) counter++;
			} 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 {
					flg = false;
					break;
				}
				if (i == N - 1) counter++;
			} {
				if (A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					flg = false;
					break;
				}
				if (i == N - 1) counter++;
			} if (A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					flg = false;
					break;
				} 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 {
					flg = false;
					break;
				} flg = false flg false break; if (i == N - 1) counter++; i == N - 1 i N - 1 N 1 counter++ counter System.out.println(counter) System.out.println System.out System System.out counter String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int counter = 0;
		int A[] = new int[N];
		for (int i = 0; i < N; i++) {
			A[i] = sc.nextInt();
		}

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

		boolean flg = true;
		while (flg) {
			for (int i = 0; i < N; i++) {
				if (A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					flg = false;
					break;
				}
				if (i == N - 1) counter++;
			}
		}
		System.out.println(counter);
	}
} 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 counter = 0;
		int A[] = new int[N];
		for (int i = 0; i < N; i++) {
			A[i] = sc.nextInt();
		}

		boolean flg = true;
		while (flg) {
			for (int i = 0; i < N; i++) {
				if (A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					flg = false;
					break;
				}
				if (i == N - 1) counter++;
			}
		}
		System.out.println(counter);
	}
}
