import java.util.Arrays;
import java.util.Scanner;

public class Main {

	static final int MOD = 1000000007;

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			int num = in.nextInt();
			int count = 0;
			while (num % 2 == 0 && num > 0) {
				num /= 2;
				count++;
			}
			a[i] = count;
		}
		Arrays.sort(a);
		System.out.println(a[0]);
		in.close();
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	static final int MOD = 1000000007;

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			int num = in.nextInt();
			int count = 0;
			while (num % 2 == 0 && num > 0) {
				num /= 2;
				count++;
			}
			a[i] = count;
		}
		Arrays.sort(a);
		System.out.println(a[0]);
		in.close();
	}
} Main static final int MOD = 1000000007; MOD 1000000007 public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			int num = in.nextInt();
			int count = 0;
			while (num % 2 == 0 && num > 0) {
				num /= 2;
				count++;
			}
			a[i] = count;
		}
		Arrays.sort(a);
		System.out.println(a[0]);
		in.close();
	} main {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			int num = in.nextInt();
			int count = 0;
			while (num % 2 == 0 && num > 0) {
				num /= 2;
				count++;
			}
			a[i] = count;
		}
		Arrays.sort(a);
		System.out.println(a[0]);
		in.close();
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in int[] a = new int[n]; a new int[n] n for (int i = 0; i < n; i++) {
			int num = in.nextInt();
			int count = 0;
			while (num % 2 == 0 && num > 0) {
				num /= 2;
				count++;
			}
			a[i] = count;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int num = in.nextInt();
			int count = 0;
			while (num % 2 == 0 && num > 0) {
				num /= 2;
				count++;
			}
			a[i] = count;
		} {
			int num = in.nextInt();
			int count = 0;
			while (num % 2 == 0 && num > 0) {
				num /= 2;
				count++;
			}
			a[i] = count;
		} int num = in.nextInt(); num in.nextInt() in.nextInt in int count = 0; count 0 while (num % 2 == 0 && num > 0) {
				num /= 2;
				count++;
			} num % 2 == 0 && num > 0 num % 2 == 0 num % 2 num 2 0 num > 0 num 0 {
				num /= 2;
				count++;
			} num /= 2 num 2 count++ count a[i] = count a[i] a i count Arrays.sort(a) Arrays.sort Arrays a System.out.println(a[0]) System.out.println System.out System System.out a[0] a 0 in.close() in.close in String[] args args public class Main {

	static final int MOD = 1000000007;

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			int num = in.nextInt();
			int count = 0;
			while (num % 2 == 0 && num > 0) {
				num /= 2;
				count++;
			}
			a[i] = count;
		}
		Arrays.sort(a);
		System.out.println(a[0]);
		in.close();
	}
} public class Main {

	static final int MOD = 1000000007;

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			int num = in.nextInt();
			int count = 0;
			while (num % 2 == 0 && num > 0) {
				num /= 2;
				count++;
			}
			a[i] = count;
		}
		Arrays.sort(a);
		System.out.println(a[0]);
		in.close();
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	static final int MOD = 1000000007;

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			int num = in.nextInt();
			int count = 0;
			while (num % 2 == 0 && num > 0) {
				num /= 2;
				count++;
			}
			a[i] = count;
		}
		Arrays.sort(a);
		System.out.println(a[0]);
		in.close();
	}
}