import java.util.*;

public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        int N = 0;
        N = sc.nextInt();
        int[] ar = new int[N];

        for (int i = 0; i < N; i++) {
            ar[i] = sc.nextInt();
        }

        int KisuFlag = 0;
        int count = 0;
        while (KisuFlag == 0) {
            for (int i = 0; i < N; i++) {
                if (ar[i] % 2 != 0) {
                    KisuFlag = 1;
                }
            }
            if(KisuFlag==1){
                break;
            }
            for(int i=0;i<N;i++){
                ar[i]=ar[i]/2;
            }
            count++;
        }
        System.out.println(count);

    }
} import java.util.*; util.* java public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        int N = 0;
        N = sc.nextInt();
        int[] ar = new int[N];

        for (int i = 0; i < N; i++) {
            ar[i] = sc.nextInt();
        }

        int KisuFlag = 0;
        int count = 0;
        while (KisuFlag == 0) {
            for (int i = 0; i < N; i++) {
                if (ar[i] % 2 != 0) {
                    KisuFlag = 1;
                }
            }
            if(KisuFlag==1){
                break;
            }
            for(int i=0;i<N;i++){
                ar[i]=ar[i]/2;
            }
            count++;
        }
        System.out.println(count);

    }
} Main public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        int N = 0;
        N = sc.nextInt();
        int[] ar = new int[N];

        for (int i = 0; i < N; i++) {
            ar[i] = sc.nextInt();
        }

        int KisuFlag = 0;
        int count = 0;
        while (KisuFlag == 0) {
            for (int i = 0; i < N; i++) {
                if (ar[i] % 2 != 0) {
                    KisuFlag = 1;
                }
            }
            if(KisuFlag==1){
                break;
            }
            for(int i=0;i<N;i++){
                ar[i]=ar[i]/2;
            }
            count++;
        }
        System.out.println(count);

    } main {
        final Scanner sc = new Scanner(System.in);
        int N = 0;
        N = sc.nextInt();
        int[] ar = new int[N];

        for (int i = 0; i < N; i++) {
            ar[i] = sc.nextInt();
        }

        int KisuFlag = 0;
        int count = 0;
        while (KisuFlag == 0) {
            for (int i = 0; i < N; i++) {
                if (ar[i] % 2 != 0) {
                    KisuFlag = 1;
                }
            }
            if(KisuFlag==1){
                break;
            }
            for(int i=0;i<N;i++){
                ar[i]=ar[i]/2;
            }
            count++;
        }
        System.out.println(count);

    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = 0; N 0 N = sc.nextInt() N sc.nextInt() sc.nextInt sc int[] ar = new int[N]; ar new int[N] N for (int i = 0; i < N; i++) {
            ar[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            ar[i] = sc.nextInt();
        } {
            ar[i] = sc.nextInt();
        } ar[i] = sc.nextInt() ar[i] ar i sc.nextInt() sc.nextInt sc int KisuFlag = 0; KisuFlag 0 int count = 0; count 0 while (KisuFlag == 0) {
            for (int i = 0; i < N; i++) {
                if (ar[i] % 2 != 0) {
                    KisuFlag = 1;
                }
            }
            if(KisuFlag==1){
                break;
            }
            for(int i=0;i<N;i++){
                ar[i]=ar[i]/2;
            }
            count++;
        } KisuFlag == 0 KisuFlag 0 {
            for (int i = 0; i < N; i++) {
                if (ar[i] % 2 != 0) {
                    KisuFlag = 1;
                }
            }
            if(KisuFlag==1){
                break;
            }
            for(int i=0;i<N;i++){
                ar[i]=ar[i]/2;
            }
            count++;
        } for (int i = 0; i < N; i++) {
                if (ar[i] % 2 != 0) {
                    KisuFlag = 1;
                }
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                if (ar[i] % 2 != 0) {
                    KisuFlag = 1;
                }
            } {
                if (ar[i] % 2 != 0) {
                    KisuFlag = 1;
                }
            } if (ar[i] % 2 != 0) {
                    KisuFlag = 1;
                } ar[i] % 2 != 0 ar[i] % 2 ar[i] ar i 2 0 {
                    KisuFlag = 1;
                } KisuFlag = 1 KisuFlag 1 if(KisuFlag==1){
                break;
            } KisuFlag==1 KisuFlag 1 {
                break;
            } break; for(int i=0;i<N;i++){
                ar[i]=ar[i]/2;
            } int i=0; int i=0; i 0 i<N i N i++ i++ i {
                ar[i]=ar[i]/2;
            } {
                ar[i]=ar[i]/2;
            } ar[i]=ar[i]/2 ar[i] ar i ar[i]/2 ar[i] ar i 2 count++ count System.out.println(count) System.out.println System.out System System.out count final String[] args args public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        int N = 0;
        N = sc.nextInt();
        int[] ar = new int[N];

        for (int i = 0; i < N; i++) {
            ar[i] = sc.nextInt();
        }

        int KisuFlag = 0;
        int count = 0;
        while (KisuFlag == 0) {
            for (int i = 0; i < N; i++) {
                if (ar[i] % 2 != 0) {
                    KisuFlag = 1;
                }
            }
            if(KisuFlag==1){
                break;
            }
            for(int i=0;i<N;i++){
                ar[i]=ar[i]/2;
            }
            count++;
        }
        System.out.println(count);

    }
} public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        int N = 0;
        N = sc.nextInt();
        int[] ar = new int[N];

        for (int i = 0; i < N; i++) {
            ar[i] = sc.nextInt();
        }

        int KisuFlag = 0;
        int count = 0;
        while (KisuFlag == 0) {
            for (int i = 0; i < N; i++) {
                if (ar[i] % 2 != 0) {
                    KisuFlag = 1;
                }
            }
            if(KisuFlag==1){
                break;
            }
            for(int i=0;i<N;i++){
                ar[i]=ar[i]/2;
            }
            count++;
        }
        System.out.println(count);

    }
} Main
import java.util.*;

public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        int N = 0;
        N = sc.nextInt();
        int[] ar = new int[N];

        for (int i = 0; i < N; i++) {
            ar[i] = sc.nextInt();
        }

        int KisuFlag = 0;
        int count = 0;
        while (KisuFlag == 0) {
            for (int i = 0; i < N; i++) {
                if (ar[i] % 2 != 0) {
                    KisuFlag = 1;
                }
            }
            if(KisuFlag==1){
                break;
            }
            for(int i=0;i<N;i++){
                ar[i]=ar[i]/2;
            }
            count++;
        }
        System.out.println(count);

    }
}