import java.util.Scanner;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] A = new int[n];
		for( int i = 0; i < n; i++){
			A[i] = scan.nextInt();
		}
		int ans = 200;
		for (int i = 0; i < A.length; i++) {
			int a = A[i];
			int now = 0;
			while (a%2 == 0) {
				a /= 2;
				now++;
			}
			if (ans > now) {
				ans = now;
			}
		}
		System.out.println(ans);
	}

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

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] A = new int[n];
		for( int i = 0; i < n; i++){
			A[i] = scan.nextInt();
		}
		int ans = 200;
		for (int i = 0; i < A.length; i++) {
			int a = A[i];
			int now = 0;
			while (a%2 == 0) {
				a /= 2;
				now++;
			}
			if (ans > now) {
				ans = now;
			}
		}
		System.out.println(ans);
	}

} Main /**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] A = new int[n];
		for( int i = 0; i < n; i++){
			A[i] = scan.nextInt();
		}
		int ans = 200;
		for (int i = 0; i < A.length; i++) {
			int a = A[i];
			int now = 0;
			while (a%2 == 0) {
				a /= 2;
				now++;
			}
			if (ans > now) {
				ans = now;
			}
		}
		System.out.println(ans);
	} main {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] A = new int[n];
		for( int i = 0; i < n; i++){
			A[i] = scan.nextInt();
		}
		int ans = 200;
		for (int i = 0; i < A.length; i++) {
			int a = A[i];
			int now = 0;
			while (a%2 == 0) {
				a /= 2;
				now++;
			}
			if (ans > now) {
				ans = now;
			}
		}
		System.out.println(ans);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] A = new int[n]; A new int[n] n for( int i = 0; i < n; i++){
			A[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			A[i] = scan.nextInt();
		} {
			A[i] = scan.nextInt();
		} A[i] = scan.nextInt() A[i] A i scan.nextInt() scan.nextInt scan int ans = 200; ans 200 for (int i = 0; i < A.length; i++) {
			int a = A[i];
			int now = 0;
			while (a%2 == 0) {
				a /= 2;
				now++;
			}
			if (ans > now) {
				ans = now;
			}
		} int i = 0; int i = 0; i 0 i < A.length i A.length A A.length i++ i++ i {
			int a = A[i];
			int now = 0;
			while (a%2 == 0) {
				a /= 2;
				now++;
			}
			if (ans > now) {
				ans = now;
			}
		} {
			int a = A[i];
			int now = 0;
			while (a%2 == 0) {
				a /= 2;
				now++;
			}
			if (ans > now) {
				ans = now;
			}
		} int a = A[i]; a A[i] A i int now = 0; now 0 while (a%2 == 0) {
				a /= 2;
				now++;
			} a%2 == 0 a%2 a 2 0 {
				a /= 2;
				now++;
			} a /= 2 a 2 now++ now if (ans > now) {
				ans = now;
			} ans > now ans now {
				ans = now;
			} ans = now ans now System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] A = new int[n];
		for( int i = 0; i < n; i++){
			A[i] = scan.nextInt();
		}
		int ans = 200;
		for (int i = 0; i < A.length; i++) {
			int a = A[i];
			int now = 0;
			while (a%2 == 0) {
				a /= 2;
				now++;
			}
			if (ans > now) {
				ans = now;
			}
		}
		System.out.println(ans);
	}

} public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] A = new int[n];
		for( int i = 0; i < n; i++){
			A[i] = scan.nextInt();
		}
		int ans = 200;
		for (int i = 0; i < A.length; i++) {
			int a = A[i];
			int now = 0;
			while (a%2 == 0) {
				a /= 2;
				now++;
			}
			if (ans > now) {
				ans = now;
			}
		}
		System.out.println(ans);
	}

} Main
import java.util.Scanner;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] A = new int[n];
		for( int i = 0; i < n; i++){
			A[i] = scan.nextInt();
		}
		int ans = 200;
		for (int i = 0; i < A.length; i++) {
			int a = A[i];
			int now = 0;
			while (a%2 == 0) {
				a /= 2;
				now++;
			}
			if (ans > now) {
				ans = now;
			}
		}
		System.out.println(ans);
	}

}
