import java.util.Scanner;

public class Main {
    static int N;
    static int[] a;

    private static void init() {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        a = new int[N];
        for(int i = 0; i < N; i++) a[i] = scanner.nextInt();

        scanner.close();
    }

    private static boolean check() {

        boolean ok = true;
        for(int i = 0; i < N; i++) {
            if(a[i] % 2 != 0) {
                ok = false;
                break;
            }
        }
        return ok;
    }


    public static void main(String args[]) {
        init();

        int count = 0;
        while (true) {
            if(check()) {
                count++;
                for(int j = 0; j < N; j++) {
                    a[j] = a[j] / 2;
                }
            } else {
                break;
            }
        }

        System.out.println(count);


    }
} import java.util.Scanner; Scanner java.util public class Main {
    static int N;
    static int[] a;

    private static void init() {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        a = new int[N];
        for(int i = 0; i < N; i++) a[i] = scanner.nextInt();

        scanner.close();
    }

    private static boolean check() {

        boolean ok = true;
        for(int i = 0; i < N; i++) {
            if(a[i] % 2 != 0) {
                ok = false;
                break;
            }
        }
        return ok;
    }


    public static void main(String args[]) {
        init();

        int count = 0;
        while (true) {
            if(check()) {
                count++;
                for(int j = 0; j < N; j++) {
                    a[j] = a[j] / 2;
                }
            } else {
                break;
            }
        }

        System.out.println(count);


    }
} Main static int N; N static int[] a; a private static void init() {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        a = new int[N];
        for(int i = 0; i < N; i++) a[i] = scanner.nextInt();

        scanner.close();
    } init {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        a = new int[N];
        for(int i = 0; i < N; i++) a[i] = scanner.nextInt();

        scanner.close();
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) N = scanner.nextInt() N scanner.nextInt() scanner.nextInt scanner a = new int[N] a new int[N] N 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] a i scanner.nextInt() scanner.nextInt scanner scanner.close() scanner.close scanner private static boolean check() {

        boolean ok = true;
        for(int i = 0; i < N; i++) {
            if(a[i] % 2 != 0) {
                ok = false;
                break;
            }
        }
        return ok;
    } check {

        boolean ok = true;
        for(int i = 0; i < N; i++) {
            if(a[i] % 2 != 0) {
                ok = false;
                break;
            }
        }
        return ok;
    } boolean ok = true; ok true for(int i = 0; i < N; i++) {
            if(a[i] % 2 != 0) {
                ok = false;
                break;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if(a[i] % 2 != 0) {
                ok = false;
                break;
            }
        } {
            if(a[i] % 2 != 0) {
                ok = false;
                break;
            }
        } if(a[i] % 2 != 0) {
                ok = false;
                break;
            } a[i] % 2 != 0 a[i] % 2 a[i] a i 2 0 {
                ok = false;
                break;
            } ok = false ok false break; return ok; ok public static void main(String args[]) {
        init();

        int count = 0;
        while (true) {
            if(check()) {
                count++;
                for(int j = 0; j < N; j++) {
                    a[j] = a[j] / 2;
                }
            } else {
                break;
            }
        }

        System.out.println(count);


    } main {
        init();

        int count = 0;
        while (true) {
            if(check()) {
                count++;
                for(int j = 0; j < N; j++) {
                    a[j] = a[j] / 2;
                }
            } else {
                break;
            }
        }

        System.out.println(count);


    } init() init int count = 0; count 0 while (true) {
            if(check()) {
                count++;
                for(int j = 0; j < N; j++) {
                    a[j] = a[j] / 2;
                }
            } else {
                break;
            }
        } true {
            if(check()) {
                count++;
                for(int j = 0; j < N; j++) {
                    a[j] = a[j] / 2;
                }
            } else {
                break;
            }
        } if(check()) {
                count++;
                for(int j = 0; j < N; j++) {
                    a[j] = a[j] / 2;
                }
            } else {
                break;
            } check() check {
                count++;
                for(int j = 0; j < N; j++) {
                    a[j] = a[j] / 2;
                }
            } count++ count for(int j = 0; j < N; j++) {
                    a[j] = a[j] / 2;
                } int j = 0; int j = 0; j 0 j < N j N j++ j++ j {
                    a[j] = a[j] / 2;
                } {
                    a[j] = a[j] / 2;
                } a[j] = a[j] / 2 a[j] a j a[j] / 2 a[j] a j 2 {
                break;
            } break; System.out.println(count) System.out.println System.out System System.out count String args[] args public class Main {
    static int N;
    static int[] a;

    private static void init() {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        a = new int[N];
        for(int i = 0; i < N; i++) a[i] = scanner.nextInt();

        scanner.close();
    }

    private static boolean check() {

        boolean ok = true;
        for(int i = 0; i < N; i++) {
            if(a[i] % 2 != 0) {
                ok = false;
                break;
            }
        }
        return ok;
    }


    public static void main(String args[]) {
        init();

        int count = 0;
        while (true) {
            if(check()) {
                count++;
                for(int j = 0; j < N; j++) {
                    a[j] = a[j] / 2;
                }
            } else {
                break;
            }
        }

        System.out.println(count);


    }
} public class Main {
    static int N;
    static int[] a;

    private static void init() {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        a = new int[N];
        for(int i = 0; i < N; i++) a[i] = scanner.nextInt();

        scanner.close();
    }

    private static boolean check() {

        boolean ok = true;
        for(int i = 0; i < N; i++) {
            if(a[i] % 2 != 0) {
                ok = false;
                break;
            }
        }
        return ok;
    }


    public static void main(String args[]) {
        init();

        int count = 0;
        while (true) {
            if(check()) {
                count++;
                for(int j = 0; j < N; j++) {
                    a[j] = a[j] / 2;
                }
            } else {
                break;
            }
        }

        System.out.println(count);


    }
} Main
import java.util.Scanner;

public class Main {
    static int N;
    static int[] a;

    private static void init() {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        a = new int[N];
        for(int i = 0; i < N; i++) a[i] = scanner.nextInt();

        scanner.close();
    }

    private static boolean check() {

        boolean ok = true;
        for(int i = 0; i < N; i++) {
            if(a[i] % 2 != 0) {
                ok = false;
                break;
            }
        }
        return ok;
    }


    public static void main(String args[]) {
        init();

        int count = 0;
        while (true) {
            if(check()) {
                count++;
                for(int j = 0; j < N; j++) {
                    a[j] = a[j] / 2;
                }
            } else {
                break;
            }
        }

        System.out.println(count);


    }
}
