import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int min = Integer.MAX_VALUE;
		int bit = 0;

		for (int i = 0; i < n; i++) {
			bit = scan.nextInt();
			min = Math.min(min, Integer.numberOfTrailingZeros(bit));
		}
		System.out.println(min);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int min = Integer.MAX_VALUE;
		int bit = 0;

		for (int i = 0; i < n; i++) {
			bit = scan.nextInt();
			min = Math.min(min, Integer.numberOfTrailingZeros(bit));
		}
		System.out.println(min);
	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int min = Integer.MAX_VALUE;
		int bit = 0;

		for (int i = 0; i < n; i++) {
			bit = scan.nextInt();
			min = Math.min(min, Integer.numberOfTrailingZeros(bit));
		}
		System.out.println(min);
	} main {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int min = Integer.MAX_VALUE;
		int bit = 0;

		for (int i = 0; i < n; i++) {
			bit = scan.nextInt();
			min = Math.min(min, Integer.numberOfTrailingZeros(bit));
		}
		System.out.println(min);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE int bit = 0; bit 0 for (int i = 0; i < n; i++) {
			bit = scan.nextInt();
			min = Math.min(min, Integer.numberOfTrailingZeros(bit));
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			bit = scan.nextInt();
			min = Math.min(min, Integer.numberOfTrailingZeros(bit));
		} {
			bit = scan.nextInt();
			min = Math.min(min, Integer.numberOfTrailingZeros(bit));
		} bit = scan.nextInt() bit scan.nextInt() scan.nextInt scan min = Math.min(min, Integer.numberOfTrailingZeros(bit)) min Math.min(min, Integer.numberOfTrailingZeros(bit)) Math.min Math min Integer.numberOfTrailingZeros(bit) Integer.numberOfTrailingZeros Integer bit System.out.println(min) System.out.println System.out System System.out min String[] args args public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int min = Integer.MAX_VALUE;
		int bit = 0;

		for (int i = 0; i < n; i++) {
			bit = scan.nextInt();
			min = Math.min(min, Integer.numberOfTrailingZeros(bit));
		}
		System.out.println(min);
	}
} public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int min = Integer.MAX_VALUE;
		int bit = 0;

		for (int i = 0; i < n; i++) {
			bit = scan.nextInt();
			min = Math.min(min, Integer.numberOfTrailingZeros(bit));
		}
		System.out.println(min);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int min = Integer.MAX_VALUE;
		int bit = 0;

		for (int i = 0; i < n; i++) {
			bit = scan.nextInt();
			min = Math.min(min, Integer.numberOfTrailingZeros(bit));
		}
		System.out.println(min);
	}
}
