import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
        List<Integer> list = new ArrayList<>();
		// スペース区切りの整数の入力
        for (int i = 0; i < n; i++) {
            int d = sc.nextInt();
            int x = 0;
            while (d % 2 == 0) {
                d /= 2;
                x++;
            }
            list.add(x);
        }
        Collections.sort(list);
		// 出力
		System.out.println(list.get(0));
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
        List<Integer> list = new ArrayList<>();
		// スペース区切りの整数の入力
        for (int i = 0; i < n; i++) {
            int d = sc.nextInt();
            int x = 0;
            while (d % 2 == 0) {
                d /= 2;
                x++;
            }
            list.add(x);
        }
        Collections.sort(list);
		// 出力
		System.out.println(list.get(0));
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
        List<Integer> list = new ArrayList<>();
		// スペース区切りの整数の入力
        for (int i = 0; i < n; i++) {
            int d = sc.nextInt();
            int x = 0;
            while (d % 2 == 0) {
                d /= 2;
                x++;
            }
            list.add(x);
        }
        Collections.sort(list);
		// 出力
		System.out.println(list.get(0));
	} main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
        List<Integer> list = new ArrayList<>();
		// スペース区切りの整数の入力
        for (int i = 0; i < n; i++) {
            int d = sc.nextInt();
            int x = 0;
            while (d % 2 == 0) {
                d /= 2;
                x++;
            }
            list.add(x);
        }
        Collections.sort(list);
		// 出力
		System.out.println(list.get(0));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<Integer> list = new ArrayList<>(); list new ArrayList<>() for (int i = 0; i < n; i++) {
            int d = sc.nextInt();
            int x = 0;
            while (d % 2 == 0) {
                d /= 2;
                x++;
            }
            list.add(x);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int d = sc.nextInt();
            int x = 0;
            while (d % 2 == 0) {
                d /= 2;
                x++;
            }
            list.add(x);
        } {
            int d = sc.nextInt();
            int x = 0;
            while (d % 2 == 0) {
                d /= 2;
                x++;
            }
            list.add(x);
        } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc int x = 0; x 0 while (d % 2 == 0) {
                d /= 2;
                x++;
            } d % 2 == 0 d % 2 d 2 0 {
                d /= 2;
                x++;
            } d /= 2 d 2 x++ x list.add(x) list.add list x Collections.sort(list) Collections.sort Collections list System.out.println(list.get(0)) System.out.println System.out System System.out list.get(0) list.get list 0 String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
        List<Integer> list = new ArrayList<>();
		// スペース区切りの整数の入力
        for (int i = 0; i < n; i++) {
            int d = sc.nextInt();
            int x = 0;
            while (d % 2 == 0) {
                d /= 2;
                x++;
            }
            list.add(x);
        }
        Collections.sort(list);
		// 出力
		System.out.println(list.get(0));
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
        List<Integer> list = new ArrayList<>();
		// スペース区切りの整数の入力
        for (int i = 0; i < n; i++) {
            int d = sc.nextInt();
            int x = 0;
            while (d % 2 == 0) {
                d /= 2;
                x++;
            }
            list.add(x);
        }
        Collections.sort(list);
		// 出力
		System.out.println(list.get(0));
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
        List<Integer> list = new ArrayList<>();
		// スペース区切りの整数の入力
        for (int i = 0; i < n; i++) {
            int d = sc.nextInt();
            int x = 0;
            while (d % 2 == 0) {
                d /= 2;
                x++;
            }
            list.add(x);
        }
        Collections.sort(list);
		// 出力
		System.out.println(list.get(0));
	}
}
