import java.util.Scanner;
public class Main{
    public static void main(String args[]){
        Scanner scan=new Scanner(System.in);
        int N=scan.nextInt();
        int[] a=new int[N];
        int flag=0;
        int i;
        int count=0;
        for(i=0;i<N;i++){
            a[i]=scan.nextInt();
            if(a[i]%2==1){
                flag++;
            }
        }
        if(flag!=0){
            System.out.println("0");
            return;
        }
        else{
            flag=0;
            while(flag==0){
                for(i=0;i<N;i++){
                    if(a[i]%2==1){
                        flag++;
                        break;
                    }
                    a[i]/=2;
                    //System.out.println(a[i]+":");
                }
                if(flag==0){
                    count++;
                }
            }
        }
        System.out.println(count);

    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String args[]){
        Scanner scan=new Scanner(System.in);
        int N=scan.nextInt();
        int[] a=new int[N];
        int flag=0;
        int i;
        int count=0;
        for(i=0;i<N;i++){
            a[i]=scan.nextInt();
            if(a[i]%2==1){
                flag++;
            }
        }
        if(flag!=0){
            System.out.println("0");
            return;
        }
        else{
            flag=0;
            while(flag==0){
                for(i=0;i<N;i++){
                    if(a[i]%2==1){
                        flag++;
                        break;
                    }
                    a[i]/=2;
                    //System.out.println(a[i]+":");
                }
                if(flag==0){
                    count++;
                }
            }
        }
        System.out.println(count);

    }
} Main public static void main(String args[]){
        Scanner scan=new Scanner(System.in);
        int N=scan.nextInt();
        int[] a=new int[N];
        int flag=0;
        int i;
        int count=0;
        for(i=0;i<N;i++){
            a[i]=scan.nextInt();
            if(a[i]%2==1){
                flag++;
            }
        }
        if(flag!=0){
            System.out.println("0");
            return;
        }
        else{
            flag=0;
            while(flag==0){
                for(i=0;i<N;i++){
                    if(a[i]%2==1){
                        flag++;
                        break;
                    }
                    a[i]/=2;
                    //System.out.println(a[i]+":");
                }
                if(flag==0){
                    count++;
                }
            }
        }
        System.out.println(count);

    } main {
        Scanner scan=new Scanner(System.in);
        int N=scan.nextInt();
        int[] a=new int[N];
        int flag=0;
        int i;
        int count=0;
        for(i=0;i<N;i++){
            a[i]=scan.nextInt();
            if(a[i]%2==1){
                flag++;
            }
        }
        if(flag!=0){
            System.out.println("0");
            return;
        }
        else{
            flag=0;
            while(flag==0){
                for(i=0;i<N;i++){
                    if(a[i]%2==1){
                        flag++;
                        break;
                    }
                    a[i]/=2;
                    //System.out.println(a[i]+":");
                }
                if(flag==0){
                    count++;
                }
            }
        }
        System.out.println(count);

    } Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int N=scan.nextInt(); N scan.nextInt() scan.nextInt scan int[] a=new int[N]; a new int[N] N int flag=0; flag 0 int i; i int count=0; count 0 for(i=0;i<N;i++){
            a[i]=scan.nextInt();
            if(a[i]%2==1){
                flag++;
            }
        } i=0; i=0 i 0 i<N i N i++ i++ i {
            a[i]=scan.nextInt();
            if(a[i]%2==1){
                flag++;
            }
        } {
            a[i]=scan.nextInt();
            if(a[i]%2==1){
                flag++;
            }
        } a[i]=scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan if(a[i]%2==1){
                flag++;
            } a[i]%2==1 a[i]%2 a[i] a i 2 1 {
                flag++;
            } flag++ flag if(flag!=0){
            System.out.println("0");
            return;
        }
        else{
            flag=0;
            while(flag==0){
                for(i=0;i<N;i++){
                    if(a[i]%2==1){
                        flag++;
                        break;
                    }
                    a[i]/=2;
                    //System.out.println(a[i]+":");
                }
                if(flag==0){
                    count++;
                }
            }
        } flag!=0 flag 0 {
            System.out.println("0");
            return;
        } System.out.println("0") System.out.println System.out System System.out "0" return; {
            flag=0;
            while(flag==0){
                for(i=0;i<N;i++){
                    if(a[i]%2==1){
                        flag++;
                        break;
                    }
                    a[i]/=2;
                    //System.out.println(a[i]+":");
                }
                if(flag==0){
                    count++;
                }
            }
        } flag=0 flag 0 while(flag==0){
                for(i=0;i<N;i++){
                    if(a[i]%2==1){
                        flag++;
                        break;
                    }
                    a[i]/=2;
                    //System.out.println(a[i]+":");
                }
                if(flag==0){
                    count++;
                }
            } flag==0 flag 0 {
                for(i=0;i<N;i++){
                    if(a[i]%2==1){
                        flag++;
                        break;
                    }
                    a[i]/=2;
                    //System.out.println(a[i]+":");
                }
                if(flag==0){
                    count++;
                }
            } for(i=0;i<N;i++){
                    if(a[i]%2==1){
                        flag++;
                        break;
                    }
                    a[i]/=2;
                    //System.out.println(a[i]+":");
                } i=0; i=0 i 0 i<N i N i++ i++ i {
                    if(a[i]%2==1){
                        flag++;
                        break;
                    }
                    a[i]/=2;
                    //System.out.println(a[i]+":");
                } {
                    if(a[i]%2==1){
                        flag++;
                        break;
                    }
                    a[i]/=2;
                    //System.out.println(a[i]+":");
                } if(a[i]%2==1){
                        flag++;
                        break;
                    } a[i]%2==1 a[i]%2 a[i] a i 2 1 {
                        flag++;
                        break;
                    } flag++ flag break; a[i]/=2 a[i] a i 2 if(flag==0){
                    count++;
                } flag==0 flag 0 {
                    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[]){
        Scanner scan=new Scanner(System.in);
        int N=scan.nextInt();
        int[] a=new int[N];
        int flag=0;
        int i;
        int count=0;
        for(i=0;i<N;i++){
            a[i]=scan.nextInt();
            if(a[i]%2==1){
                flag++;
            }
        }
        if(flag!=0){
            System.out.println("0");
            return;
        }
        else{
            flag=0;
            while(flag==0){
                for(i=0;i<N;i++){
                    if(a[i]%2==1){
                        flag++;
                        break;
                    }
                    a[i]/=2;
                    //System.out.println(a[i]+":");
                }
                if(flag==0){
                    count++;
                }
            }
        }
        System.out.println(count);

    }
} public class Main{
    public static void main(String args[]){
        Scanner scan=new Scanner(System.in);
        int N=scan.nextInt();
        int[] a=new int[N];
        int flag=0;
        int i;
        int count=0;
        for(i=0;i<N;i++){
            a[i]=scan.nextInt();
            if(a[i]%2==1){
                flag++;
            }
        }
        if(flag!=0){
            System.out.println("0");
            return;
        }
        else{
            flag=0;
            while(flag==0){
                for(i=0;i<N;i++){
                    if(a[i]%2==1){
                        flag++;
                        break;
                    }
                    a[i]/=2;
                    //System.out.println(a[i]+":");
                }
                if(flag==0){
                    count++;
                }
            }
        }
        System.out.println(count);

    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String args[]){
        Scanner scan=new Scanner(System.in);
        int N=scan.nextInt();
        int[] a=new int[N];
        int flag=0;
        int i;
        int count=0;
        for(i=0;i<N;i++){
            a[i]=scan.nextInt();
            if(a[i]%2==1){
                flag++;
            }
        }
        if(flag!=0){
            System.out.println("0");
            return;
        }
        else{
            flag=0;
            while(flag==0){
                for(i=0;i<N;i++){
                    if(a[i]%2==1){
                        flag++;
                        break;
                    }
                    a[i]/=2;
                    //System.out.println(a[i]+":");
                }
                if(flag==0){
                    count++;
                }
            }
        }
        System.out.println(count);

    }
}