import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = Integer.parseInt(scan.nextLine());

        int x[] = new int[n];
        for (int i = 0; i < n; i++) {
            x[i] = scan.nextInt();
        }

        int res = 0;
        while (true) {
            boolean flag = false;

            for (int y = 0; y < n; y++) {
                if (x[y] % 2 != 0)
                    flag = true;
            }
            if (flag)
                break;

            for (int i = 0; i < n; i++) {
                x[i] = x[i] / 2;
            }
            res++;

        }
        System.out.print(res);

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

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = Integer.parseInt(scan.nextLine());

        int x[] = new int[n];
        for (int i = 0; i < n; i++) {
            x[i] = scan.nextInt();
        }

        int res = 0;
        while (true) {
            boolean flag = false;

            for (int y = 0; y < n; y++) {
                if (x[y] % 2 != 0)
                    flag = true;
            }
            if (flag)
                break;

            for (int i = 0; i < n; i++) {
                x[i] = x[i] / 2;
            }
            res++;

        }
        System.out.print(res);

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

        Scanner scan = new Scanner(System.in);
        int n = Integer.parseInt(scan.nextLine());

        int x[] = new int[n];
        for (int i = 0; i < n; i++) {
            x[i] = scan.nextInt();
        }

        int res = 0;
        while (true) {
            boolean flag = false;

            for (int y = 0; y < n; y++) {
                if (x[y] % 2 != 0)
                    flag = true;
            }
            if (flag)
                break;

            for (int i = 0; i < n; i++) {
                x[i] = x[i] / 2;
            }
            res++;

        }
        System.out.print(res);

    } main {

        Scanner scan = new Scanner(System.in);
        int n = Integer.parseInt(scan.nextLine());

        int x[] = new int[n];
        for (int i = 0; i < n; i++) {
            x[i] = scan.nextInt();
        }

        int res = 0;
        while (true) {
            boolean flag = false;

            for (int y = 0; y < n; y++) {
                if (x[y] % 2 != 0)
                    flag = true;
            }
            if (flag)
                break;

            for (int i = 0; i < n; i++) {
                x[i] = x[i] / 2;
            }
            res++;

        }
        System.out.print(res);

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = Integer.parseInt(scan.nextLine()); n Integer.parseInt(scan.nextLine()) Integer.parseInt Integer scan.nextLine() scan.nextLine scan int x[] = new int[n]; x new int[n] n for (int i = 0; i < n; i++) {
            x[i] = scan.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            x[i] = scan.nextInt();
        } {
            x[i] = scan.nextInt();
        } x[i] = scan.nextInt() x[i] x i scan.nextInt() scan.nextInt scan int res = 0; res 0 while (true) {
            boolean flag = false;

            for (int y = 0; y < n; y++) {
                if (x[y] % 2 != 0)
                    flag = true;
            }
            if (flag)
                break;

            for (int i = 0; i < n; i++) {
                x[i] = x[i] / 2;
            }
            res++;

        } true {
            boolean flag = false;

            for (int y = 0; y < n; y++) {
                if (x[y] % 2 != 0)
                    flag = true;
            }
            if (flag)
                break;

            for (int i = 0; i < n; i++) {
                x[i] = x[i] / 2;
            }
            res++;

        } boolean flag = false; flag false for (int y = 0; y < n; y++) {
                if (x[y] % 2 != 0)
                    flag = true;
            } int y = 0; int y = 0; y 0 y < n y n y++ y++ y {
                if (x[y] % 2 != 0)
                    flag = true;
            } {
                if (x[y] % 2 != 0)
                    flag = true;
            } if (x[y] % 2 != 0)
                    flag = true; x[y] % 2 != 0 x[y] % 2 x[y] x y 2 0 flag = true flag true if (flag)
                break; flag break; for (int i = 0; i < n; i++) {
                x[i] = x[i] / 2;
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                x[i] = x[i] / 2;
            } {
                x[i] = x[i] / 2;
            } x[i] = x[i] / 2 x[i] x i x[i] / 2 x[i] x i 2 res++ res System.out.print(res) System.out.print System.out System System.out res String[] args args public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = Integer.parseInt(scan.nextLine());

        int x[] = new int[n];
        for (int i = 0; i < n; i++) {
            x[i] = scan.nextInt();
        }

        int res = 0;
        while (true) {
            boolean flag = false;

            for (int y = 0; y < n; y++) {
                if (x[y] % 2 != 0)
                    flag = true;
            }
            if (flag)
                break;

            for (int i = 0; i < n; i++) {
                x[i] = x[i] / 2;
            }
            res++;

        }
        System.out.print(res);

    }
} public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = Integer.parseInt(scan.nextLine());

        int x[] = new int[n];
        for (int i = 0; i < n; i++) {
            x[i] = scan.nextInt();
        }

        int res = 0;
        while (true) {
            boolean flag = false;

            for (int y = 0; y < n; y++) {
                if (x[y] % 2 != 0)
                    flag = true;
            }
            if (flag)
                break;

            for (int i = 0; i < n; i++) {
                x[i] = x[i] / 2;
            }
            res++;

        }
        System.out.print(res);

    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = Integer.parseInt(scan.nextLine());

        int x[] = new int[n];
        for (int i = 0; i < n; i++) {
            x[i] = scan.nextInt();
        }

        int res = 0;
        while (true) {
            boolean flag = false;

            for (int y = 0; y < n; y++) {
                if (x[y] % 2 != 0)
                    flag = true;
            }
            if (flag)
                break;

            for (int i = 0; i < n; i++) {
                x[i] = x[i] / 2;
            }
            res++;

        }
        System.out.print(res);

    }
}
