import java.util.*;

public class Main {
    public static int ans[] ;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int list[] = new int[n];

        for(int i=0;i<n;i++){
            list[i] = sc.nextInt();
        }
        int count = 0;
        boolean flag = true;
        while(flag){
            for(int i=0;i<n;i++){
                if(list[i]%2 == 1){
                    flag = false;
                }
                list[i] = list[i]/2;
                if(i == n-1 && flag){count++;}
            }
        }
        System.out.println(count);
    }
} import java.util.*; util.* java public class Main {
    public static int ans[] ;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int list[] = new int[n];

        for(int i=0;i<n;i++){
            list[i] = sc.nextInt();
        }
        int count = 0;
        boolean flag = true;
        while(flag){
            for(int i=0;i<n;i++){
                if(list[i]%2 == 1){
                    flag = false;
                }
                list[i] = list[i]/2;
                if(i == n-1 && flag){count++;}
            }
        }
        System.out.println(count);
    }
} Main public static int ans[] ; ans public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int list[] = new int[n];

        for(int i=0;i<n;i++){
            list[i] = sc.nextInt();
        }
        int count = 0;
        boolean flag = true;
        while(flag){
            for(int i=0;i<n;i++){
                if(list[i]%2 == 1){
                    flag = false;
                }
                list[i] = list[i]/2;
                if(i == n-1 && flag){count++;}
            }
        }
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int list[] = new int[n];

        for(int i=0;i<n;i++){
            list[i] = sc.nextInt();
        }
        int count = 0;
        boolean flag = true;
        while(flag){
            for(int i=0;i<n;i++){
                if(list[i]%2 == 1){
                    flag = false;
                }
                list[i] = list[i]/2;
                if(i == n-1 && flag){count++;}
            }
        }
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int list[] = new int[n]; list new int[n] n for(int i=0;i<n;i++){
            list[i] = sc.nextInt();
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            list[i] = sc.nextInt();
        } {
            list[i] = sc.nextInt();
        } list[i] = sc.nextInt() list[i] list i sc.nextInt() sc.nextInt sc int count = 0; count 0 boolean flag = true; flag true while(flag){
            for(int i=0;i<n;i++){
                if(list[i]%2 == 1){
                    flag = false;
                }
                list[i] = list[i]/2;
                if(i == n-1 && flag){count++;}
            }
        } flag {
            for(int i=0;i<n;i++){
                if(list[i]%2 == 1){
                    flag = false;
                }
                list[i] = list[i]/2;
                if(i == n-1 && flag){count++;}
            }
        } for(int i=0;i<n;i++){
                if(list[i]%2 == 1){
                    flag = false;
                }
                list[i] = list[i]/2;
                if(i == n-1 && flag){count++;}
            } int i=0; int i=0; i 0 i<n i n i++ i++ i {
                if(list[i]%2 == 1){
                    flag = false;
                }
                list[i] = list[i]/2;
                if(i == n-1 && flag){count++;}
            } {
                if(list[i]%2 == 1){
                    flag = false;
                }
                list[i] = list[i]/2;
                if(i == n-1 && flag){count++;}
            } if(list[i]%2 == 1){
                    flag = false;
                } list[i]%2 == 1 list[i]%2 list[i] list i 2 1 {
                    flag = false;
                } flag = false flag false list[i] = list[i]/2 list[i] list i list[i]/2 list[i] list i 2 if(i == n-1 && flag){count++;} i == n-1 && flag i == n-1 i n-1 n 1 flag {count++;} count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static int ans[] ;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int list[] = new int[n];

        for(int i=0;i<n;i++){
            list[i] = sc.nextInt();
        }
        int count = 0;
        boolean flag = true;
        while(flag){
            for(int i=0;i<n;i++){
                if(list[i]%2 == 1){
                    flag = false;
                }
                list[i] = list[i]/2;
                if(i == n-1 && flag){count++;}
            }
        }
        System.out.println(count);
    }
} public class Main {
    public static int ans[] ;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int list[] = new int[n];

        for(int i=0;i<n;i++){
            list[i] = sc.nextInt();
        }
        int count = 0;
        boolean flag = true;
        while(flag){
            for(int i=0;i<n;i++){
                if(list[i]%2 == 1){
                    flag = false;
                }
                list[i] = list[i]/2;
                if(i == n-1 && flag){count++;}
            }
        }
        System.out.println(count);
    }
} Main
import java.util.*;

public class Main {
    public static int ans[] ;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int list[] = new int[n];

        for(int i=0;i<n;i++){
            list[i] = sc.nextInt();
        }
        int count = 0;
        boolean flag = true;
        while(flag){
            for(int i=0;i<n;i++){
                if(list[i]%2 == 1){
                    flag = false;
                }
                list[i] = list[i]/2;
                if(i == n-1 && flag){count++;}
            }
        }
        System.out.println(count);
    }
}
