import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] a = new int[N];
		for (int i = 0; i < a.length; i++) {
			a[i] = sc.nextInt();
		}
		int count = 0;
		while (true) {
			boolean containOdd = false;
			for (int i = 0; i < a.length; i++) {
				int tmp = a[i];
				if (tmp % 2 == 0) {
					a[i] = tmp / 2;
				} else {
					containOdd = true;
					break;
				}
			}
			if (containOdd)
				break;
			else
				count++;
		}
		System.out.println(count);
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] a = new int[N];
		for (int i = 0; i < a.length; i++) {
			a[i] = sc.nextInt();
		}
		int count = 0;
		while (true) {
			boolean containOdd = false;
			for (int i = 0; i < a.length; i++) {
				int tmp = a[i];
				if (tmp % 2 == 0) {
					a[i] = tmp / 2;
				} else {
					containOdd = true;
					break;
				}
			}
			if (containOdd)
				break;
			else
				count++;
		}
		System.out.println(count);
		sc.close();
	}
} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] a = new int[N];
		for (int i = 0; i < a.length; i++) {
			a[i] = sc.nextInt();
		}
		int count = 0;
		while (true) {
			boolean containOdd = false;
			for (int i = 0; i < a.length; i++) {
				int tmp = a[i];
				if (tmp % 2 == 0) {
					a[i] = tmp / 2;
				} else {
					containOdd = true;
					break;
				}
			}
			if (containOdd)
				break;
			else
				count++;
		}
		System.out.println(count);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] a = new int[N];
		for (int i = 0; i < a.length; i++) {
			a[i] = sc.nextInt();
		}
		int count = 0;
		while (true) {
			boolean containOdd = false;
			for (int i = 0; i < a.length; i++) {
				int tmp = a[i];
				if (tmp % 2 == 0) {
					a[i] = tmp / 2;
				} else {
					containOdd = true;
					break;
				}
			}
			if (containOdd)
				break;
			else
				count++;
		}
		System.out.println(count);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] a = new int[N]; a new int[N] N for (int i = 0; i < a.length; i++) {
			a[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i {
			a[i] = sc.nextInt();
		} {
			a[i] = sc.nextInt();
		} a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc int count = 0; count 0 while (true) {
			boolean containOdd = false;
			for (int i = 0; i < a.length; i++) {
				int tmp = a[i];
				if (tmp % 2 == 0) {
					a[i] = tmp / 2;
				} else {
					containOdd = true;
					break;
				}
			}
			if (containOdd)
				break;
			else
				count++;
		} true {
			boolean containOdd = false;
			for (int i = 0; i < a.length; i++) {
				int tmp = a[i];
				if (tmp % 2 == 0) {
					a[i] = tmp / 2;
				} else {
					containOdd = true;
					break;
				}
			}
			if (containOdd)
				break;
			else
				count++;
		} boolean containOdd = false; containOdd false for (int i = 0; i < a.length; i++) {
				int tmp = a[i];
				if (tmp % 2 == 0) {
					a[i] = tmp / 2;
				} else {
					containOdd = true;
					break;
				}
			} int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i {
				int tmp = a[i];
				if (tmp % 2 == 0) {
					a[i] = tmp / 2;
				} else {
					containOdd = true;
					break;
				}
			} {
				int tmp = a[i];
				if (tmp % 2 == 0) {
					a[i] = tmp / 2;
				} else {
					containOdd = true;
					break;
				}
			} int tmp = a[i]; tmp a[i] a i if (tmp % 2 == 0) {
					a[i] = tmp / 2;
				} else {
					containOdd = true;
					break;
				} tmp % 2 == 0 tmp % 2 tmp 2 0 {
					a[i] = tmp / 2;
				} a[i] = tmp / 2 a[i] a i tmp / 2 tmp 2 {
					containOdd = true;
					break;
				} containOdd = true containOdd true break; if (containOdd)
				break;
			else
				count++; containOdd break; count++ count System.out.println(count) System.out.println System.out System System.out count sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] a = new int[N];
		for (int i = 0; i < a.length; i++) {
			a[i] = sc.nextInt();
		}
		int count = 0;
		while (true) {
			boolean containOdd = false;
			for (int i = 0; i < a.length; i++) {
				int tmp = a[i];
				if (tmp % 2 == 0) {
					a[i] = tmp / 2;
				} else {
					containOdd = true;
					break;
				}
			}
			if (containOdd)
				break;
			else
				count++;
		}
		System.out.println(count);
		sc.close();
	}
} public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] a = new int[N];
		for (int i = 0; i < a.length; i++) {
			a[i] = sc.nextInt();
		}
		int count = 0;
		while (true) {
			boolean containOdd = false;
			for (int i = 0; i < a.length; i++) {
				int tmp = a[i];
				if (tmp % 2 == 0) {
					a[i] = tmp / 2;
				} else {
					containOdd = true;
					break;
				}
			}
			if (containOdd)
				break;
			else
				count++;
		}
		System.out.println(count);
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] a = new int[N];
		for (int i = 0; i < a.length; i++) {
			a[i] = sc.nextInt();
		}
		int count = 0;
		while (true) {
			boolean containOdd = false;
			for (int i = 0; i < a.length; i++) {
				int tmp = a[i];
				if (tmp % 2 == 0) {
					a[i] = tmp / 2;
				} else {
					containOdd = true;
					break;
				}
			}
			if (containOdd)
				break;
			else
				count++;
		}
		System.out.println(count);
		sc.close();
	}
}