import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int A[] = new int[N+1];
        for (int i = 0; i < N; i++) {
            A[i] = scanner.nextInt();
        }

        int c = 0;
        while (true) {
            boolean done = false;
            for (int i = 0; i < N; i++) {
                if (A[i] % 2 != 0) done = true;
            }

            if (done) break;

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

            ++c;
        }

        System.out.println(c);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int A[] = new int[N+1];
        for (int i = 0; i < N; i++) {
            A[i] = scanner.nextInt();
        }

        int c = 0;
        while (true) {
            boolean done = false;
            for (int i = 0; i < N; i++) {
                if (A[i] % 2 != 0) done = true;
            }

            if (done) break;

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

            ++c;
        }

        System.out.println(c);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int A[] = new int[N+1];
        for (int i = 0; i < N; i++) {
            A[i] = scanner.nextInt();
        }

        int c = 0;
        while (true) {
            boolean done = false;
            for (int i = 0; i < N; i++) {
                if (A[i] % 2 != 0) done = true;
            }

            if (done) break;

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

            ++c;
        }

        System.out.println(c);
    } main {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int A[] = new int[N+1];
        for (int i = 0; i < N; i++) {
            A[i] = scanner.nextInt();
        }

        int c = 0;
        while (true) {
            boolean done = false;
            for (int i = 0; i < N; i++) {
                if (A[i] % 2 != 0) done = true;
            }

            if (done) break;

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

            ++c;
        }

        System.out.println(c);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int A[] = new int[N+1]; A new int[N+1] N+1 N 1 for (int i = 0; i < N; i++) {
            A[i] = scanner.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            A[i] = scanner.nextInt();
        } {
            A[i] = scanner.nextInt();
        } A[i] = scanner.nextInt() A[i] A i scanner.nextInt() scanner.nextInt scanner int c = 0; c 0 while (true) {
            boolean done = false;
            for (int i = 0; i < N; i++) {
                if (A[i] % 2 != 0) done = true;
            }

            if (done) break;

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

            ++c;
        } true {
            boolean done = false;
            for (int i = 0; i < N; i++) {
                if (A[i] % 2 != 0) done = true;
            }

            if (done) break;

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

            ++c;
        } boolean done = false; done false for (int i = 0; i < N; i++) {
                if (A[i] % 2 != 0) done = true;
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                if (A[i] % 2 != 0) done = true;
            } {
                if (A[i] % 2 != 0) done = true;
            } if (A[i] % 2 != 0) done = true; A[i] % 2 != 0 A[i] % 2 A[i] A i 2 0 done = true done true if (done) break; done break; for (int i = 0; i < N; i++) {
                A[i] /= 2;
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                A[i] /= 2;
            } {
                A[i] /= 2;
            } A[i] /= 2 A[i] A i 2 ++c c System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int A[] = new int[N+1];
        for (int i = 0; i < N; i++) {
            A[i] = scanner.nextInt();
        }

        int c = 0;
        while (true) {
            boolean done = false;
            for (int i = 0; i < N; i++) {
                if (A[i] % 2 != 0) done = true;
            }

            if (done) break;

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

            ++c;
        }

        System.out.println(c);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int A[] = new int[N+1];
        for (int i = 0; i < N; i++) {
            A[i] = scanner.nextInt();
        }

        int c = 0;
        while (true) {
            boolean done = false;
            for (int i = 0; i < N; i++) {
                if (A[i] % 2 != 0) done = true;
            }

            if (done) break;

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

            ++c;
        }

        System.out.println(c);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int A[] = new int[N+1];
        for (int i = 0; i < N; i++) {
            A[i] = scanner.nextInt();
        }

        int c = 0;
        while (true) {
            boolean done = false;
            for (int i = 0; i < N; i++) {
                if (A[i] % 2 != 0) done = true;
            }

            if (done) break;

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

            ++c;
        }

        System.out.println(c);
    }
}