import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		int count = 0;
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		ArrayList<Integer> al = new ArrayList<Integer>(i);
		for(int j = 0; j < i; j++) {
			al.add(sc.nextInt());
		}
		me: while(true) {
			for(int t = 0; t < i; t++) {
				if(al.get(t) % 2 == 0) {
					al.set(t, al.get(t) / 2);
				}else {
					System.out.println(count);
					break me;
				}
			}
			count++;
		}
	}

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

	public static void main(String[] args) {
		int count = 0;
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		ArrayList<Integer> al = new ArrayList<Integer>(i);
		for(int j = 0; j < i; j++) {
			al.add(sc.nextInt());
		}
		me: while(true) {
			for(int t = 0; t < i; t++) {
				if(al.get(t) % 2 == 0) {
					al.set(t, al.get(t) / 2);
				}else {
					System.out.println(count);
					break me;
				}
			}
			count++;
		}
	}

} Main public static void main(String[] args) {
		int count = 0;
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		ArrayList<Integer> al = new ArrayList<Integer>(i);
		for(int j = 0; j < i; j++) {
			al.add(sc.nextInt());
		}
		me: while(true) {
			for(int t = 0; t < i; t++) {
				if(al.get(t) % 2 == 0) {
					al.set(t, al.get(t) / 2);
				}else {
					System.out.println(count);
					break me;
				}
			}
			count++;
		}
	} main {
		int count = 0;
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		ArrayList<Integer> al = new ArrayList<Integer>(i);
		for(int j = 0; j < i; j++) {
			al.add(sc.nextInt());
		}
		me: while(true) {
			for(int t = 0; t < i; t++) {
				if(al.get(t) % 2 == 0) {
					al.set(t, al.get(t) / 2);
				}else {
					System.out.println(count);
					break me;
				}
			}
			count++;
		}
	} int count = 0; count 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int i = sc.nextInt(); i sc.nextInt() sc.nextInt sc ArrayList<Integer> al = new ArrayList<Integer>(i); al new ArrayList<Integer>(i) for(int j = 0; j < i; j++) {
			al.add(sc.nextInt());
		} int j = 0; int j = 0; j 0 j < i j i j++ j++ j {
			al.add(sc.nextInt());
		} {
			al.add(sc.nextInt());
		} al.add(sc.nextInt()) al.add al sc.nextInt() sc.nextInt sc String[] args args public class Main {

	public static void main(String[] args) {
		int count = 0;
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		ArrayList<Integer> al = new ArrayList<Integer>(i);
		for(int j = 0; j < i; j++) {
			al.add(sc.nextInt());
		}
		me: while(true) {
			for(int t = 0; t < i; t++) {
				if(al.get(t) % 2 == 0) {
					al.set(t, al.get(t) / 2);
				}else {
					System.out.println(count);
					break me;
				}
			}
			count++;
		}
	}

} public class Main {

	public static void main(String[] args) {
		int count = 0;
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		ArrayList<Integer> al = new ArrayList<Integer>(i);
		for(int j = 0; j < i; j++) {
			al.add(sc.nextInt());
		}
		me: while(true) {
			for(int t = 0; t < i; t++) {
				if(al.get(t) % 2 == 0) {
					al.set(t, al.get(t) / 2);
				}else {
					System.out.println(count);
					break me;
				}
			}
			count++;
		}
	}

} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		int count = 0;
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		ArrayList<Integer> al = new ArrayList<Integer>(i);
		for(int j = 0; j < i; j++) {
			al.add(sc.nextInt());
		}
		me: while(true) {
			for(int t = 0; t < i; t++) {
				if(al.get(t) % 2 == 0) {
					al.set(t, al.get(t) / 2);
				}else {
					System.out.println(count);
					break me;
				}
			}
			count++;
		}
	}

}