import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int bit = 0;
		for (int i = 0; i < n; i++) {
			bit |= Integer.parseInt(sc.next());
		}

		System.out.println(Integer.numberOfTrailingZeros(bit));
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int bit = 0;
		for (int i = 0; i < n; i++) {
			bit |= Integer.parseInt(sc.next());
		}

		System.out.println(Integer.numberOfTrailingZeros(bit));
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int bit = 0;
		for (int i = 0; i < n; i++) {
			bit |= Integer.parseInt(sc.next());
		}

		System.out.println(Integer.numberOfTrailingZeros(bit));
	} main {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int bit = 0;
		for (int i = 0; i < n; i++) {
			bit |= Integer.parseInt(sc.next());
		}

		System.out.println(Integer.numberOfTrailingZeros(bit));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int bit = 0; bit 0 for (int i = 0; i < n; i++) {
			bit |= Integer.parseInt(sc.next());
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			bit |= Integer.parseInt(sc.next());
		} {
			bit |= Integer.parseInt(sc.next());
		} bit |= Integer.parseInt(sc.next()) bit Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next 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 public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int bit = 0;
		for (int i = 0; i < n; i++) {
			bit |= Integer.parseInt(sc.next());
		}

		System.out.println(Integer.numberOfTrailingZeros(bit));
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int bit = 0;
		for (int i = 0; i < n; i++) {
			bit |= Integer.parseInt(sc.next());
		}

		System.out.println(Integer.numberOfTrailingZeros(bit));
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int bit = 0;
		for (int i = 0; i < n; i++) {
			bit |= Integer.parseInt(sc.next());
		}

		System.out.println(Integer.numberOfTrailingZeros(bit));
	}

}