import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int bit = 0;
		for (int i= 0;i<n;i++) {
			bit|=sc.nextInt();
		}
		System.out.println(Integer.numberOfTrailingZeros(bit));

	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int bit = 0;
		for (int i= 0;i<n;i++) {
			bit|=sc.nextInt();
		}
		System.out.println(Integer.numberOfTrailingZeros(bit));

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int bit = 0;
		for (int i= 0;i<n;i++) {
			bit|=sc.nextInt();
		}
		System.out.println(Integer.numberOfTrailingZeros(bit));

	} main {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int bit = 0;
		for (int i= 0;i<n;i++) {
			bit|=sc.nextInt();
		}
		System.out.println(Integer.numberOfTrailingZeros(bit));

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int bit = 0; bit 0 for (int i= 0;i<n;i++) {
			bit|=sc.nextInt();
		} int i= 0; int i= 0; i 0 i<n i n i++ i++ i {
			bit|=sc.nextInt();
		} {
			bit|=sc.nextInt();
		} bit|=sc.nextInt() bit sc.nextInt() sc.nextInt sc System.out.println(Integer.numberOfTrailingZeros(bit)) System.out.println System.out System System.out Integer.numberOfTrailingZeros(bit) Integer.numberOfTrailingZeros Integer bit String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int bit = 0;
		for (int i= 0;i<n;i++) {
			bit|=sc.nextInt();
		}
		System.out.println(Integer.numberOfTrailingZeros(bit));

	}
}
