import java.util.Scanner;

public class Main{

    public static void main(String[] args) {
        
        Scanner scan = new Scanner(System.in);
        int cnt = 0;

        int n = scan.nextInt();
        int[] array = new int[n];
        for(int i=0; i<n; i++){
            array[i] = scan.nextInt();
        }
        boolean flg = true;
        while(flg){
            for(int i=0; i<n; i++){
                if(array[i]%2==0) array[i] /= 2;
                else{
                    flg = false;
                    break;
                }
            }
            if(flg) cnt++;
        }

        scan.close();
        System.out.println(cnt);
    }
} import java.util.Scanner; Scanner java.util public class Main{

    public static void main(String[] args) {
        
        Scanner scan = new Scanner(System.in);
        int cnt = 0;

        int n = scan.nextInt();
        int[] array = new int[n];
        for(int i=0; i<n; i++){
            array[i] = scan.nextInt();
        }
        boolean flg = true;
        while(flg){
            for(int i=0; i<n; i++){
                if(array[i]%2==0) array[i] /= 2;
                else{
                    flg = false;
                    break;
                }
            }
            if(flg) cnt++;
        }

        scan.close();
        System.out.println(cnt);
    }
} Main public static void main(String[] args) {
        
        Scanner scan = new Scanner(System.in);
        int cnt = 0;

        int n = scan.nextInt();
        int[] array = new int[n];
        for(int i=0; i<n; i++){
            array[i] = scan.nextInt();
        }
        boolean flg = true;
        while(flg){
            for(int i=0; i<n; i++){
                if(array[i]%2==0) array[i] /= 2;
                else{
                    flg = false;
                    break;
                }
            }
            if(flg) cnt++;
        }

        scan.close();
        System.out.println(cnt);
    } main {
        
        Scanner scan = new Scanner(System.in);
        int cnt = 0;

        int n = scan.nextInt();
        int[] array = new int[n];
        for(int i=0; i<n; i++){
            array[i] = scan.nextInt();
        }
        boolean flg = true;
        while(flg){
            for(int i=0; i<n; i++){
                if(array[i]%2==0) array[i] /= 2;
                else{
                    flg = false;
                    break;
                }
            }
            if(flg) cnt++;
        }

        scan.close();
        System.out.println(cnt);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int cnt = 0; cnt 0 int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] array = new int[n]; array new int[n] n for(int i=0; i<n; i++){
            array[i] = scan.nextInt();
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            array[i] = scan.nextInt();
        } {
            array[i] = scan.nextInt();
        } array[i] = scan.nextInt() array[i] array i scan.nextInt() scan.nextInt scan boolean flg = true; flg true while(flg){
            for(int i=0; i<n; i++){
                if(array[i]%2==0) array[i] /= 2;
                else{
                    flg = false;
                    break;
                }
            }
            if(flg) cnt++;
        } flg {
            for(int i=0; i<n; i++){
                if(array[i]%2==0) array[i] /= 2;
                else{
                    flg = false;
                    break;
                }
            }
            if(flg) cnt++;
        } for(int i=0; i<n; i++){
                if(array[i]%2==0) array[i] /= 2;
                else{
                    flg = false;
                    break;
                }
            } int i=0; int i=0; i 0 i<n i n i++ i++ i {
                if(array[i]%2==0) array[i] /= 2;
                else{
                    flg = false;
                    break;
                }
            } {
                if(array[i]%2==0) array[i] /= 2;
                else{
                    flg = false;
                    break;
                }
            } if(array[i]%2==0) array[i] /= 2;
                else{
                    flg = false;
                    break;
                } array[i]%2==0 array[i]%2 array[i] array i 2 0 array[i] /= 2 array[i] array i 2 {
                    flg = false;
                    break;
                } flg = false flg false break; if(flg) cnt++; flg cnt++ cnt scan.close() scan.close scan System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main{

    public static void main(String[] args) {
        
        Scanner scan = new Scanner(System.in);
        int cnt = 0;

        int n = scan.nextInt();
        int[] array = new int[n];
        for(int i=0; i<n; i++){
            array[i] = scan.nextInt();
        }
        boolean flg = true;
        while(flg){
            for(int i=0; i<n; i++){
                if(array[i]%2==0) array[i] /= 2;
                else{
                    flg = false;
                    break;
                }
            }
            if(flg) cnt++;
        }

        scan.close();
        System.out.println(cnt);
    }
} public class Main{

    public static void main(String[] args) {
        
        Scanner scan = new Scanner(System.in);
        int cnt = 0;

        int n = scan.nextInt();
        int[] array = new int[n];
        for(int i=0; i<n; i++){
            array[i] = scan.nextInt();
        }
        boolean flg = true;
        while(flg){
            for(int i=0; i<n; i++){
                if(array[i]%2==0) array[i] /= 2;
                else{
                    flg = false;
                    break;
                }
            }
            if(flg) cnt++;
        }

        scan.close();
        System.out.println(cnt);
    }
} Main
import java.util.Scanner;

public class Main{

    public static void main(String[] args) {
        
        Scanner scan = new Scanner(System.in);
        int cnt = 0;

        int n = scan.nextInt();
        int[] array = new int[n];
        for(int i=0; i<n; i++){
            array[i] = scan.nextInt();
        }
        boolean flg = true;
        while(flg){
            for(int i=0; i<n; i++){
                if(array[i]%2==0) array[i] /= 2;
                else{
                    flg = false;
                    break;
                }
            }
            if(flg) cnt++;
        }

        scan.close();
        System.out.println(cnt);
    }
}