import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ans = 1000000009;
        for(int i = 0;i < n;i++){
            int a = sc.nextInt();
            int cnt = 0;
            while(a > 0 && a%2 == 0){
                a /= 2;
                cnt++;
            }
            if(ans > cnt)ans = cnt;
        }
        System.out.println(ans);
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ans = 1000000009;
        for(int i = 0;i < n;i++){
            int a = sc.nextInt();
            int cnt = 0;
            while(a > 0 && a%2 == 0){
                a /= 2;
                cnt++;
            }
            if(ans > cnt)ans = cnt;
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ans = 1000000009;
        for(int i = 0;i < n;i++){
            int a = sc.nextInt();
            int cnt = 0;
            while(a > 0 && a%2 == 0){
                a /= 2;
                cnt++;
            }
            if(ans > cnt)ans = cnt;
        }
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ans = 1000000009;
        for(int i = 0;i < n;i++){
            int a = sc.nextInt();
            int cnt = 0;
            while(a > 0 && a%2 == 0){
                a /= 2;
                cnt++;
            }
            if(ans > cnt)ans = cnt;
        }
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int ans = 1000000009; ans 1000000009 for(int i = 0;i < n;i++){
            int a = sc.nextInt();
            int cnt = 0;
            while(a > 0 && a%2 == 0){
                a /= 2;
                cnt++;
            }
            if(ans > cnt)ans = cnt;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int a = sc.nextInt();
            int cnt = 0;
            while(a > 0 && a%2 == 0){
                a /= 2;
                cnt++;
            }
            if(ans > cnt)ans = cnt;
        } {
            int a = sc.nextInt();
            int cnt = 0;
            while(a > 0 && a%2 == 0){
                a /= 2;
                cnt++;
            }
            if(ans > cnt)ans = cnt;
        } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int cnt = 0; cnt 0 while(a > 0 && a%2 == 0){
                a /= 2;
                cnt++;
            } a > 0 && a%2 == 0 a > 0 a 0 a%2 == 0 a%2 a 2 0 {
                a /= 2;
                cnt++;
            } a /= 2 a 2 cnt++ cnt if(ans > cnt)ans = cnt; ans > cnt ans cnt ans = cnt ans cnt System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ans = 1000000009;
        for(int i = 0;i < n;i++){
            int a = sc.nextInt();
            int cnt = 0;
            while(a > 0 && a%2 == 0){
                a /= 2;
                cnt++;
            }
            if(ans > cnt)ans = cnt;
        }
        System.out.println(ans);
    }
}