import java.util.Scanner;

class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int ans = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int temp = 0;
            int v = sc.nextInt();
            while (v % 2 == 0) {
                temp++;
                v /= 2;
            }
            ans = Math.min(ans, temp);
        }

        System.out.println(ans);
        sc.close();
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int ans = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int temp = 0;
            int v = sc.nextInt();
            while (v % 2 == 0) {
                temp++;
                v /= 2;
            }
            ans = Math.min(ans, temp);
        }

        System.out.println(ans);
        sc.close();
    }
} Main public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int ans = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int temp = 0;
            int v = sc.nextInt();
            while (v % 2 == 0) {
                temp++;
                v /= 2;
            }
            ans = Math.min(ans, temp);
        }

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

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int ans = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int temp = 0;
            int v = sc.nextInt();
            while (v % 2 == 0) {
                temp++;
                v /= 2;
            }
            ans = Math.min(ans, temp);
        }

        System.out.println(ans);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int ans = Integer.MAX_VALUE; ans Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < n; i++) {
            int temp = 0;
            int v = sc.nextInt();
            while (v % 2 == 0) {
                temp++;
                v /= 2;
            }
            ans = Math.min(ans, temp);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int temp = 0;
            int v = sc.nextInt();
            while (v % 2 == 0) {
                temp++;
                v /= 2;
            }
            ans = Math.min(ans, temp);
        } {
            int temp = 0;
            int v = sc.nextInt();
            while (v % 2 == 0) {
                temp++;
                v /= 2;
            }
            ans = Math.min(ans, temp);
        } int temp = 0; temp 0 int v = sc.nextInt(); v sc.nextInt() sc.nextInt sc while (v % 2 == 0) {
                temp++;
                v /= 2;
            } v % 2 == 0 v % 2 v 2 0 {
                temp++;
                v /= 2;
            } temp++ temp v /= 2 v 2 ans = Math.min(ans, temp) ans Math.min(ans, temp) Math.min Math ans temp System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int ans = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int temp = 0;
            int v = sc.nextInt();
            while (v % 2 == 0) {
                temp++;
                v /= 2;
            }
            ans = Math.min(ans, temp);
        }

        System.out.println(ans);
        sc.close();
    }
}
