import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		// int N = 3;
		// int[] A = { 24, 16, 24 };

		Scanner scan = new Scanner(System.in);

		int N = Integer.parseInt(scan.next());

		int[] A = new int[N];
		for (int i = 0; i < N; i++) {
			A[i] = Integer.parseInt(scan.next());
		}

		scan.close();

		int i = 0;
		boolean volid = true;
		while (true) {
			for (int j = 0; j < A.length; j++) {
				if (A[j] % 2 != 0) {
					volid = false;
					break;
				}
				A[j] = A[j] / 2;
			}
			if (!volid) {
				break;
			}
			i += 1;
		}
		System.out.println(i);
	}

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

	public static void main(String[] args) {

		// int N = 3;
		// int[] A = { 24, 16, 24 };

		Scanner scan = new Scanner(System.in);

		int N = Integer.parseInt(scan.next());

		int[] A = new int[N];
		for (int i = 0; i < N; i++) {
			A[i] = Integer.parseInt(scan.next());
		}

		scan.close();

		int i = 0;
		boolean volid = true;
		while (true) {
			for (int j = 0; j < A.length; j++) {
				if (A[j] % 2 != 0) {
					volid = false;
					break;
				}
				A[j] = A[j] / 2;
			}
			if (!volid) {
				break;
			}
			i += 1;
		}
		System.out.println(i);
	}

} Main public static void main(String[] args) {

		// int N = 3;
		// int[] A = { 24, 16, 24 };

		Scanner scan = new Scanner(System.in);

		int N = Integer.parseInt(scan.next());

		int[] A = new int[N];
		for (int i = 0; i < N; i++) {
			A[i] = Integer.parseInt(scan.next());
		}

		scan.close();

		int i = 0;
		boolean volid = true;
		while (true) {
			for (int j = 0; j < A.length; j++) {
				if (A[j] % 2 != 0) {
					volid = false;
					break;
				}
				A[j] = A[j] / 2;
			}
			if (!volid) {
				break;
			}
			i += 1;
		}
		System.out.println(i);
	} main {

		// int N = 3;
		// int[] A = { 24, 16, 24 };

		Scanner scan = new Scanner(System.in);

		int N = Integer.parseInt(scan.next());

		int[] A = new int[N];
		for (int i = 0; i < N; i++) {
			A[i] = Integer.parseInt(scan.next());
		}

		scan.close();

		int i = 0;
		boolean volid = true;
		while (true) {
			for (int j = 0; j < A.length; j++) {
				if (A[j] % 2 != 0) {
					volid = false;
					break;
				}
				A[j] = A[j] / 2;
			}
			if (!volid) {
				break;
			}
			i += 1;
		}
		System.out.println(i);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = Integer.parseInt(scan.next()); N Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int[] A = new int[N]; A new int[N] N for (int i = 0; i < N; i++) {
			A[i] = Integer.parseInt(scan.next());
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			A[i] = Integer.parseInt(scan.next());
		} {
			A[i] = Integer.parseInt(scan.next());
		} A[i] = Integer.parseInt(scan.next()) A[i] A i Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan scan.close() scan.close scan int i = 0; i 0 boolean volid = true; volid true while (true) {
			for (int j = 0; j < A.length; j++) {
				if (A[j] % 2 != 0) {
					volid = false;
					break;
				}
				A[j] = A[j] / 2;
			}
			if (!volid) {
				break;
			}
			i += 1;
		} true {
			for (int j = 0; j < A.length; j++) {
				if (A[j] % 2 != 0) {
					volid = false;
					break;
				}
				A[j] = A[j] / 2;
			}
			if (!volid) {
				break;
			}
			i += 1;
		} for (int j = 0; j < A.length; j++) {
				if (A[j] % 2 != 0) {
					volid = false;
					break;
				}
				A[j] = A[j] / 2;
			} int j = 0; int j = 0; j 0 j < A.length j A.length A A.length j++ j++ j {
				if (A[j] % 2 != 0) {
					volid = false;
					break;
				}
				A[j] = A[j] / 2;
			} {
				if (A[j] % 2 != 0) {
					volid = false;
					break;
				}
				A[j] = A[j] / 2;
			} if (A[j] % 2 != 0) {
					volid = false;
					break;
				} A[j] % 2 != 0 A[j] % 2 A[j] A j 2 0 {
					volid = false;
					break;
				} volid = false volid false break; A[j] = A[j] / 2 A[j] A j A[j] / 2 A[j] A j 2 if (!volid) {
				break;
			} !volid volid {
				break;
			} break; i += 1 i 1 System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main {

	public static void main(String[] args) {

		// int N = 3;
		// int[] A = { 24, 16, 24 };

		Scanner scan = new Scanner(System.in);

		int N = Integer.parseInt(scan.next());

		int[] A = new int[N];
		for (int i = 0; i < N; i++) {
			A[i] = Integer.parseInt(scan.next());
		}

		scan.close();

		int i = 0;
		boolean volid = true;
		while (true) {
			for (int j = 0; j < A.length; j++) {
				if (A[j] % 2 != 0) {
					volid = false;
					break;
				}
				A[j] = A[j] / 2;
			}
			if (!volid) {
				break;
			}
			i += 1;
		}
		System.out.println(i);
	}

} public class Main {

	public static void main(String[] args) {

		// int N = 3;
		// int[] A = { 24, 16, 24 };

		Scanner scan = new Scanner(System.in);

		int N = Integer.parseInt(scan.next());

		int[] A = new int[N];
		for (int i = 0; i < N; i++) {
			A[i] = Integer.parseInt(scan.next());
		}

		scan.close();

		int i = 0;
		boolean volid = true;
		while (true) {
			for (int j = 0; j < A.length; j++) {
				if (A[j] % 2 != 0) {
					volid = false;
					break;
				}
				A[j] = A[j] / 2;
			}
			if (!volid) {
				break;
			}
			i += 1;
		}
		System.out.println(i);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		// int N = 3;
		// int[] A = { 24, 16, 24 };

		Scanner scan = new Scanner(System.in);

		int N = Integer.parseInt(scan.next());

		int[] A = new int[N];
		for (int i = 0; i < N; i++) {
			A[i] = Integer.parseInt(scan.next());
		}

		scan.close();

		int i = 0;
		boolean volid = true;
		while (true) {
			for (int j = 0; j < A.length; j++) {
				if (A[j] % 2 != 0) {
					volid = false;
					break;
				}
				A[j] = A[j] / 2;
			}
			if (!volid) {
				break;
			}
			i += 1;
		}
		System.out.println(i);
	}

}
