import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int num = s.nextInt();
        int[] a = new int[num];
        int cnt = 0;
        for (int i = 0; i < num; i++) {
            a[i] = s.nextInt();
        }

        while (allEven(a)) {
            division(a);
            cnt++;
        }
        System.out.println(cnt);
        s.close();
    }

    public static void division(int[] num) {
        for (int i = 0; i < num.length; i++) {
            num[i] /= 2;
        }
    }

    public static boolean allEven(int[] num) {
        int cnt = 0;
        boolean ret = false;
        for (int i = 0; i < num.length; i++) {
            if (num[i] % 2 == 0) {
                cnt++;
            }
        }
        if (cnt == num.length) {
            ret = true;
        }
        return ret;
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int num = s.nextInt();
        int[] a = new int[num];
        int cnt = 0;
        for (int i = 0; i < num; i++) {
            a[i] = s.nextInt();
        }

        while (allEven(a)) {
            division(a);
            cnt++;
        }
        System.out.println(cnt);
        s.close();
    }

    public static void division(int[] num) {
        for (int i = 0; i < num.length; i++) {
            num[i] /= 2;
        }
    }

    public static boolean allEven(int[] num) {
        int cnt = 0;
        boolean ret = false;
        for (int i = 0; i < num.length; i++) {
            if (num[i] % 2 == 0) {
                cnt++;
            }
        }
        if (cnt == num.length) {
            ret = true;
        }
        return ret;
    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int num = s.nextInt();
        int[] a = new int[num];
        int cnt = 0;
        for (int i = 0; i < num; i++) {
            a[i] = s.nextInt();
        }

        while (allEven(a)) {
            division(a);
            cnt++;
        }
        System.out.println(cnt);
        s.close();
    } main {
        Scanner s = new Scanner(System.in);
        int num = s.nextInt();
        int[] a = new int[num];
        int cnt = 0;
        for (int i = 0; i < num; i++) {
            a[i] = s.nextInt();
        }

        while (allEven(a)) {
            division(a);
            cnt++;
        }
        System.out.println(cnt);
        s.close();
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int num = s.nextInt(); num s.nextInt() s.nextInt s int[] a = new int[num]; a new int[num] num int cnt = 0; cnt 0 for (int i = 0; i < num; i++) {
            a[i] = s.nextInt();
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
            a[i] = s.nextInt();
        } {
            a[i] = s.nextInt();
        } a[i] = s.nextInt() a[i] a i s.nextInt() s.nextInt s while (allEven(a)) {
            division(a);
            cnt++;
        } allEven(a) allEven a {
            division(a);
            cnt++;
        } division(a) division a cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt s.close() s.close s String[] args args public static void division(int[] num) {
        for (int i = 0; i < num.length; i++) {
            num[i] /= 2;
        }
    } division {
        for (int i = 0; i < num.length; i++) {
            num[i] /= 2;
        }
    } for (int i = 0; i < num.length; i++) {
            num[i] /= 2;
        } int i = 0; int i = 0; i 0 i < num.length i num.length num num.length i++ i++ i {
            num[i] /= 2;
        } {
            num[i] /= 2;
        } num[i] /= 2 num[i] num i 2 int[] num num public static boolean allEven(int[] num) {
        int cnt = 0;
        boolean ret = false;
        for (int i = 0; i < num.length; i++) {
            if (num[i] % 2 == 0) {
                cnt++;
            }
        }
        if (cnt == num.length) {
            ret = true;
        }
        return ret;
    } allEven {
        int cnt = 0;
        boolean ret = false;
        for (int i = 0; i < num.length; i++) {
            if (num[i] % 2 == 0) {
                cnt++;
            }
        }
        if (cnt == num.length) {
            ret = true;
        }
        return ret;
    } int cnt = 0; cnt 0 boolean ret = false; ret false for (int i = 0; i < num.length; i++) {
            if (num[i] % 2 == 0) {
                cnt++;
            }
        } int i = 0; int i = 0; i 0 i < num.length i num.length num num.length i++ i++ i {
            if (num[i] % 2 == 0) {
                cnt++;
            }
        } {
            if (num[i] % 2 == 0) {
                cnt++;
            }
        } if (num[i] % 2 == 0) {
                cnt++;
            } num[i] % 2 == 0 num[i] % 2 num[i] num i 2 0 {
                cnt++;
            } cnt++ cnt if (cnt == num.length) {
            ret = true;
        } cnt == num.length cnt num.length num num.length {
            ret = true;
        } ret = true ret true return ret; ret int[] num num public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int num = s.nextInt();
        int[] a = new int[num];
        int cnt = 0;
        for (int i = 0; i < num; i++) {
            a[i] = s.nextInt();
        }

        while (allEven(a)) {
            division(a);
            cnt++;
        }
        System.out.println(cnt);
        s.close();
    }

    public static void division(int[] num) {
        for (int i = 0; i < num.length; i++) {
            num[i] /= 2;
        }
    }

    public static boolean allEven(int[] num) {
        int cnt = 0;
        boolean ret = false;
        for (int i = 0; i < num.length; i++) {
            if (num[i] % 2 == 0) {
                cnt++;
            }
        }
        if (cnt == num.length) {
            ret = true;
        }
        return ret;
    }
} public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int num = s.nextInt();
        int[] a = new int[num];
        int cnt = 0;
        for (int i = 0; i < num; i++) {
            a[i] = s.nextInt();
        }

        while (allEven(a)) {
            division(a);
            cnt++;
        }
        System.out.println(cnt);
        s.close();
    }

    public static void division(int[] num) {
        for (int i = 0; i < num.length; i++) {
            num[i] /= 2;
        }
    }

    public static boolean allEven(int[] num) {
        int cnt = 0;
        boolean ret = false;
        for (int i = 0; i < num.length; i++) {
            if (num[i] % 2 == 0) {
                cnt++;
            }
        }
        if (cnt == num.length) {
            ret = true;
        }
        return ret;
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int num = s.nextInt();
        int[] a = new int[num];
        int cnt = 0;
        for (int i = 0; i < num; i++) {
            a[i] = s.nextInt();
        }

        while (allEven(a)) {
            division(a);
            cnt++;
        }
        System.out.println(cnt);
        s.close();
    }

    public static void division(int[] num) {
        for (int i = 0; i < num.length; i++) {
            num[i] /= 2;
        }
    }

    public static boolean allEven(int[] num) {
        int cnt = 0;
        boolean ret = false;
        for (int i = 0; i < num.length; i++) {
            if (num[i] % 2 == 0) {
                cnt++;
            }
        }
        if (cnt == num.length) {
            ret = true;
        }
        return ret;
    }
}