import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());
        int[] A = new int[N];
        for (int i = 0; i < N; i++) {
            A[i] = Integer.parseInt(scanner.next());
        }
        scanner.close();

        int count = 0;
        while (isEven(A)) {
            for (int i = 0; i < N; i++) {
                A[i] = A[i] / 2;
            }

            count++;
        }
        System.out.println(count);
    }

    private static boolean isEven(int[] a) {
        boolean isEven = true;
        for (int n : a) {
            if (n == 0 || n % 2 != 0) {
                isEven = false;
                break;
            }
        }
        return isEven;
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());
        int[] A = new int[N];
        for (int i = 0; i < N; i++) {
            A[i] = Integer.parseInt(scanner.next());
        }
        scanner.close();

        int count = 0;
        while (isEven(A)) {
            for (int i = 0; i < N; i++) {
                A[i] = A[i] / 2;
            }

            count++;
        }
        System.out.println(count);
    }

    private static boolean isEven(int[] a) {
        boolean isEven = true;
        for (int n : a) {
            if (n == 0 || n % 2 != 0) {
                isEven = false;
                break;
            }
        }
        return isEven;
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());
        int[] A = new int[N];
        for (int i = 0; i < N; i++) {
            A[i] = Integer.parseInt(scanner.next());
        }
        scanner.close();

        int count = 0;
        while (isEven(A)) {
            for (int i = 0; i < N; i++) {
                A[i] = A[i] / 2;
            }

            count++;
        }
        System.out.println(count);
    } main {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());
        int[] A = new int[N];
        for (int i = 0; i < N; i++) {
            A[i] = Integer.parseInt(scanner.next());
        }
        scanner.close();

        int count = 0;
        while (isEven(A)) {
            for (int i = 0; i < N; i++) {
                A[i] = A[i] / 2;
            }

            count++;
        }
        System.out.println(count);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = Integer.parseInt(scanner.next()); N Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int[] A = new int[N]; A new int[N] N for (int i = 0; i < N; i++) {
            A[i] = Integer.parseInt(scanner.next());
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            A[i] = Integer.parseInt(scanner.next());
        } {
            A[i] = Integer.parseInt(scanner.next());
        } A[i] = Integer.parseInt(scanner.next()) A[i] A i Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner scanner.close() scanner.close scanner int count = 0; count 0 while (isEven(A)) {
            for (int i = 0; i < N; i++) {
                A[i] = A[i] / 2;
            }

            count++;
        } isEven(A) isEven A {
            for (int i = 0; i < N; i++) {
                A[i] = A[i] / 2;
            }

            count++;
        } for (int i = 0; i < N; i++) {
                A[i] = A[i] / 2;
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                A[i] = A[i] / 2;
            } {
                A[i] = A[i] / 2;
            } A[i] = A[i] / 2 A[i] A i A[i] / 2 A[i] A i 2 count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args private static boolean isEven(int[] a) {
        boolean isEven = true;
        for (int n : a) {
            if (n == 0 || n % 2 != 0) {
                isEven = false;
                break;
            }
        }
        return isEven;
    } isEven {
        boolean isEven = true;
        for (int n : a) {
            if (n == 0 || n % 2 != 0) {
                isEven = false;
                break;
            }
        }
        return isEven;
    } boolean isEven = true; isEven true for (int n : a) {
            if (n == 0 || n % 2 != 0) {
                isEven = false;
                break;
            }
        } int n a {
            if (n == 0 || n % 2 != 0) {
                isEven = false;
                break;
            }
        } {
            if (n == 0 || n % 2 != 0) {
                isEven = false;
                break;
            }
        } if (n == 0 || n % 2 != 0) {
                isEven = false;
                break;
            } n == 0 || n % 2 != 0 n == 0 n 0 n % 2 != 0 n % 2 n 2 0 {
                isEven = false;
                break;
            } isEven = false isEven false break; return isEven; isEven int[] a a public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());
        int[] A = new int[N];
        for (int i = 0; i < N; i++) {
            A[i] = Integer.parseInt(scanner.next());
        }
        scanner.close();

        int count = 0;
        while (isEven(A)) {
            for (int i = 0; i < N; i++) {
                A[i] = A[i] / 2;
            }

            count++;
        }
        System.out.println(count);
    }

    private static boolean isEven(int[] a) {
        boolean isEven = true;
        for (int n : a) {
            if (n == 0 || n % 2 != 0) {
                isEven = false;
                break;
            }
        }
        return isEven;
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());
        int[] A = new int[N];
        for (int i = 0; i < N; i++) {
            A[i] = Integer.parseInt(scanner.next());
        }
        scanner.close();

        int count = 0;
        while (isEven(A)) {
            for (int i = 0; i < N; i++) {
                A[i] = A[i] / 2;
            }

            count++;
        }
        System.out.println(count);
    }

    private static boolean isEven(int[] a) {
        boolean isEven = true;
        for (int n : a) {
            if (n == 0 || n % 2 != 0) {
                isEven = false;
                break;
            }
        }
        return isEven;
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());
        int[] A = new int[N];
        for (int i = 0; i < N; i++) {
            A[i] = Integer.parseInt(scanner.next());
        }
        scanner.close();

        int count = 0;
        while (isEven(A)) {
            for (int i = 0; i < N; i++) {
                A[i] = A[i] / 2;
            }

            count++;
        }
        System.out.println(count);
    }

    private static boolean isEven(int[] a) {
        boolean isEven = true;
        for (int n : a) {
            if (n == 0 || n % 2 != 0) {
                isEven = false;
                break;
            }
        }
        return isEven;
    }
}
