import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int ans=0;

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Integer[] nums = new Integer[n];
        for(int i = 0;i<n;i++){
            nums[i] = sc.nextInt();
        }

        loop: while (true) {
            for (int i = 0; i < n; i++) {
                int num=nums[i];
                if(num%2==0){
                    nums[i] = num/2;
                }else{
                    break loop;
                }
            }
            ans++;
        }
        System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        int ans=0;

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Integer[] nums = new Integer[n];
        for(int i = 0;i<n;i++){
            nums[i] = sc.nextInt();
        }

        loop: while (true) {
            for (int i = 0; i < n; i++) {
                int num=nums[i];
                if(num%2==0){
                    nums[i] = num/2;
                }else{
                    break loop;
                }
            }
            ans++;
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        int ans=0;

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Integer[] nums = new Integer[n];
        for(int i = 0;i<n;i++){
            nums[i] = sc.nextInt();
        }

        loop: while (true) {
            for (int i = 0; i < n; i++) {
                int num=nums[i];
                if(num%2==0){
                    nums[i] = num/2;
                }else{
                    break loop;
                }
            }
            ans++;
        }
        System.out.println(ans);
    } main {
        int ans=0;

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Integer[] nums = new Integer[n];
        for(int i = 0;i<n;i++){
            nums[i] = sc.nextInt();
        }

        loop: while (true) {
            for (int i = 0; i < n; i++) {
                int num=nums[i];
                if(num%2==0){
                    nums[i] = num/2;
                }else{
                    break loop;
                }
            }
            ans++;
        }
        System.out.println(ans);
    } int ans=0; ans 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc Integer[] nums = new Integer[n]; nums new Integer[n] n for(int i = 0;i<n;i++){
            nums[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
            nums[i] = sc.nextInt();
        } {
            nums[i] = sc.nextInt();
        } nums[i] = sc.nextInt() nums[i] nums i sc.nextInt() sc.nextInt sc System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) {
        int ans=0;

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Integer[] nums = new Integer[n];
        for(int i = 0;i<n;i++){
            nums[i] = sc.nextInt();
        }

        loop: while (true) {
            for (int i = 0; i < n; i++) {
                int num=nums[i];
                if(num%2==0){
                    nums[i] = num/2;
                }else{
                    break loop;
                }
            }
            ans++;
        }
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) {
        int ans=0;

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Integer[] nums = new Integer[n];
        for(int i = 0;i<n;i++){
            nums[i] = sc.nextInt();
        }

        loop: while (true) {
            for (int i = 0; i < n; i++) {
                int num=nums[i];
                if(num%2==0){
                    nums[i] = num/2;
                }else{
                    break loop;
                }
            }
            ans++;
        }
        System.out.println(ans);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int ans=0;

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Integer[] nums = new Integer[n];
        for(int i = 0;i<n;i++){
            nums[i] = sc.nextInt();
        }

        loop: while (true) {
            for (int i = 0; i < n; i++) {
                int num=nums[i];
                if(num%2==0){
                    nums[i] = num/2;
                }else{
                    break loop;
                }
            }
            ans++;
        }
        System.out.println(ans);
    }
}