import java.util.*;

public class Main {
    public static void main(String[] args){
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        long[] a = new long[210];
        int count = 0;
        
        boolean flg = false;
        
        
        for(int i = 0 ; sc.hasNext() ; i++){
            a[i] = sc.nextLong();
        }
        
        
        while(true){
            for(int i = 0; i <= (N - 1) ; i++){
                if(a[i] % 2 != 0){
                    flg = true;
                }else{
                    a[i] = a[i] / 2;
                }
            }
            if(flg){
                break;
            }else{
                count++;
            }
        }
        System.out.println(count);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        long[] a = new long[210];
        int count = 0;
        
        boolean flg = false;
        
        
        for(int i = 0 ; sc.hasNext() ; i++){
            a[i] = sc.nextLong();
        }
        
        
        while(true){
            for(int i = 0; i <= (N - 1) ; i++){
                if(a[i] % 2 != 0){
                    flg = true;
                }else{
                    a[i] = a[i] / 2;
                }
            }
            if(flg){
                break;
            }else{
                count++;
            }
        }
        System.out.println(count);
    }
} Main public static void main(String[] args){
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        long[] a = new long[210];
        int count = 0;
        
        boolean flg = false;
        
        
        for(int i = 0 ; sc.hasNext() ; i++){
            a[i] = sc.nextLong();
        }
        
        
        while(true){
            for(int i = 0; i <= (N - 1) ; i++){
                if(a[i] % 2 != 0){
                    flg = true;
                }else{
                    a[i] = a[i] / 2;
                }
            }
            if(flg){
                break;
            }else{
                count++;
            }
        }
        System.out.println(count);
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        long[] a = new long[210];
        int count = 0;
        
        boolean flg = false;
        
        
        for(int i = 0 ; sc.hasNext() ; i++){
            a[i] = sc.nextLong();
        }
        
        
        while(true){
            for(int i = 0; i <= (N - 1) ; i++){
                if(a[i] % 2 != 0){
                    flg = true;
                }else{
                    a[i] = a[i] / 2;
                }
            }
            if(flg){
                break;
            }else{
                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 long[] a = new long[210]; a new long[210] 210 int count = 0; count 0 boolean flg = false; flg false for(int i = 0 ; sc.hasNext() ; i++){
            a[i] = sc.nextLong();
        } int i = 0 ; int i = 0 ; i 0 sc.hasNext() sc.hasNext sc i++ i++ i {
            a[i] = sc.nextLong();
        } {
            a[i] = sc.nextLong();
        } a[i] = sc.nextLong() a[i] a i sc.nextLong() sc.nextLong sc while(true){
            for(int i = 0; i <= (N - 1) ; i++){
                if(a[i] % 2 != 0){
                    flg = true;
                }else{
                    a[i] = a[i] / 2;
                }
            }
            if(flg){
                break;
            }else{
                count++;
            }
        } true {
            for(int i = 0; i <= (N - 1) ; i++){
                if(a[i] % 2 != 0){
                    flg = true;
                }else{
                    a[i] = a[i] / 2;
                }
            }
            if(flg){
                break;
            }else{
                count++;
            }
        } for(int i = 0; i <= (N - 1) ; i++){
                if(a[i] % 2 != 0){
                    flg = true;
                }else{
                    a[i] = a[i] / 2;
                }
            } int i = 0; int i = 0; i 0 i <= (N - 1) i (N - 1) N 1 i++ i++ i {
                if(a[i] % 2 != 0){
                    flg = true;
                }else{
                    a[i] = a[i] / 2;
                }
            } {
                if(a[i] % 2 != 0){
                    flg = true;
                }else{
                    a[i] = a[i] / 2;
                }
            } if(a[i] % 2 != 0){
                    flg = true;
                }else{
                    a[i] = a[i] / 2;
                } a[i] % 2 != 0 a[i] % 2 a[i] a i 2 0 {
                    flg = true;
                } flg = true flg true {
                    a[i] = a[i] / 2;
                } a[i] = a[i] / 2 a[i] a i a[i] / 2 a[i] a i 2 if(flg){
                break;
            }else{
                count++;
            } flg {
                break;
            } break; {
                count++;
            } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static void main(String[] args){
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        long[] a = new long[210];
        int count = 0;
        
        boolean flg = false;
        
        
        for(int i = 0 ; sc.hasNext() ; i++){
            a[i] = sc.nextLong();
        }
        
        
        while(true){
            for(int i = 0; i <= (N - 1) ; i++){
                if(a[i] % 2 != 0){
                    flg = true;
                }else{
                    a[i] = a[i] / 2;
                }
            }
            if(flg){
                break;
            }else{
                count++;
            }
        }
        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args){
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        long[] a = new long[210];
        int count = 0;
        
        boolean flg = false;
        
        
        for(int i = 0 ; sc.hasNext() ; i++){
            a[i] = sc.nextLong();
        }
        
        
        while(true){
            for(int i = 0; i <= (N - 1) ; i++){
                if(a[i] % 2 != 0){
                    flg = true;
                }else{
                    a[i] = a[i] / 2;
                }
            }
            if(flg){
                break;
            }else{
                count++;
            }
        }
        System.out.println(count);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args){
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        long[] a = new long[210];
        int count = 0;
        
        boolean flg = false;
        
        
        for(int i = 0 ; sc.hasNext() ; i++){
            a[i] = sc.nextLong();
        }
        
        
        while(true){
            for(int i = 0; i <= (N - 1) ; i++){
                if(a[i] % 2 != 0){
                    flg = true;
                }else{
                    a[i] = a[i] / 2;
                }
            }
            if(flg){
                break;
            }else{
                count++;
            }
        }
        System.out.println(count);
    }
}
