import java.util.Scanner;

public class Main {

    public static void main(String[] args) {


        Scanner sc = new Scanner(System.in);
        int ans = 0;
        int n = sc.nextInt();
        int A[] = new int[n];
        int temp = 0 ;
        for (int i = 0;i<n ;i++){
            temp = sc.nextInt();
            int able = 0;
            while (temp%2 == 0){
                temp /= 2;
                able++;

            }
            A[i] = able;

        }
        ans = A[0];
        for(int i = 0 ;i<n ;i++){
            if(ans >=A[i]){
                ans = A[i];
            }
        }


        System.out.println(ans);
    }


} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {


        Scanner sc = new Scanner(System.in);
        int ans = 0;
        int n = sc.nextInt();
        int A[] = new int[n];
        int temp = 0 ;
        for (int i = 0;i<n ;i++){
            temp = sc.nextInt();
            int able = 0;
            while (temp%2 == 0){
                temp /= 2;
                able++;

            }
            A[i] = able;

        }
        ans = A[0];
        for(int i = 0 ;i<n ;i++){
            if(ans >=A[i]){
                ans = A[i];
            }
        }


        System.out.println(ans);
    }


} Main public static void main(String[] args) {


        Scanner sc = new Scanner(System.in);
        int ans = 0;
        int n = sc.nextInt();
        int A[] = new int[n];
        int temp = 0 ;
        for (int i = 0;i<n ;i++){
            temp = sc.nextInt();
            int able = 0;
            while (temp%2 == 0){
                temp /= 2;
                able++;

            }
            A[i] = able;

        }
        ans = A[0];
        for(int i = 0 ;i<n ;i++){
            if(ans >=A[i]){
                ans = A[i];
            }
        }


        System.out.println(ans);
    } main {


        Scanner sc = new Scanner(System.in);
        int ans = 0;
        int n = sc.nextInt();
        int A[] = new int[n];
        int temp = 0 ;
        for (int i = 0;i<n ;i++){
            temp = sc.nextInt();
            int able = 0;
            while (temp%2 == 0){
                temp /= 2;
                able++;

            }
            A[i] = able;

        }
        ans = A[0];
        for(int i = 0 ;i<n ;i++){
            if(ans >=A[i]){
                ans = A[i];
            }
        }


        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int ans = 0; ans 0 int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int A[] = new int[n]; A new int[n] n int temp = 0 ; temp 0 for (int i = 0;i<n ;i++){
            temp = sc.nextInt();
            int able = 0;
            while (temp%2 == 0){
                temp /= 2;
                able++;

            }
            A[i] = able;

        } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
            temp = sc.nextInt();
            int able = 0;
            while (temp%2 == 0){
                temp /= 2;
                able++;

            }
            A[i] = able;

        } {
            temp = sc.nextInt();
            int able = 0;
            while (temp%2 == 0){
                temp /= 2;
                able++;

            }
            A[i] = able;

        } temp = sc.nextInt() temp sc.nextInt() sc.nextInt sc int able = 0; able 0 while (temp%2 == 0){
                temp /= 2;
                able++;

            } temp%2 == 0 temp%2 temp 2 0 {
                temp /= 2;
                able++;

            } temp /= 2 temp 2 able++ able A[i] = able A[i] A i able ans = A[0] ans A[0] A 0 for(int i = 0 ;i<n ;i++){
            if(ans >=A[i]){
                ans = A[i];
            }
        } int i = 0 ; int i = 0 ; i 0 i<n i n i++ i++ i {
            if(ans >=A[i]){
                ans = A[i];
            }
        } {
            if(ans >=A[i]){
                ans = A[i];
            }
        } if(ans >=A[i]){
                ans = A[i];
            } ans >=A[i] ans A[i] A i {
                ans = A[i];
            } ans = A[i] ans A[i] A i System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

    public static void main(String[] args) {


        Scanner sc = new Scanner(System.in);
        int ans = 0;
        int n = sc.nextInt();
        int A[] = new int[n];
        int temp = 0 ;
        for (int i = 0;i<n ;i++){
            temp = sc.nextInt();
            int able = 0;
            while (temp%2 == 0){
                temp /= 2;
                able++;

            }
            A[i] = able;

        }
        ans = A[0];
        for(int i = 0 ;i<n ;i++){
            if(ans >=A[i]){
                ans = A[i];
            }
        }


        System.out.println(ans);
    }


} public class Main {

    public static void main(String[] args) {


        Scanner sc = new Scanner(System.in);
        int ans = 0;
        int n = sc.nextInt();
        int A[] = new int[n];
        int temp = 0 ;
        for (int i = 0;i<n ;i++){
            temp = sc.nextInt();
            int able = 0;
            while (temp%2 == 0){
                temp /= 2;
                able++;

            }
            A[i] = able;

        }
        ans = A[0];
        for(int i = 0 ;i<n ;i++){
            if(ans >=A[i]){
                ans = A[i];
            }
        }


        System.out.println(ans);
    }


} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {


        Scanner sc = new Scanner(System.in);
        int ans = 0;
        int n = sc.nextInt();
        int A[] = new int[n];
        int temp = 0 ;
        for (int i = 0;i<n ;i++){
            temp = sc.nextInt();
            int able = 0;
            while (temp%2 == 0){
                temp /= 2;
                able++;

            }
            A[i] = able;

        }
        ans = A[0];
        for(int i = 0 ;i<n ;i++){
            if(ans >=A[i]){
                ans = A[i];
            }
        }


        System.out.println(ans);
    }


}
