import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] A = new int[N];

        for (int i = 0; i < N; i++) {
            A[i] = sc.nextInt();
        }

        /*
        int N = 6;
        int[] A = {382253568,723152896,37802240,379425024,404894720,471526144};
        */

        boolean even = true;

        int cnt = 0;

        while (true) {

            for (int i = 0; i < N; i++) {

                if (A[i] % 2 != 0) {
                    even = false;
                }

            }

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

                cnt++;

            } else {
                break;
            }
        }

        System.out.println(cnt);

    }

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

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] A = new int[N];

        for (int i = 0; i < N; i++) {
            A[i] = sc.nextInt();
        }

        /*
        int N = 6;
        int[] A = {382253568,723152896,37802240,379425024,404894720,471526144};
        */

        boolean even = true;

        int cnt = 0;

        while (true) {

            for (int i = 0; i < N; i++) {

                if (A[i] % 2 != 0) {
                    even = false;
                }

            }

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

                cnt++;

            } else {
                break;
            }
        }

        System.out.println(cnt);

    }

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

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] A = new int[N];

        for (int i = 0; i < N; i++) {
            A[i] = sc.nextInt();
        }

        /*
        int N = 6;
        int[] A = {382253568,723152896,37802240,379425024,404894720,471526144};
        */

        boolean even = true;

        int cnt = 0;

        while (true) {

            for (int i = 0; i < N; i++) {

                if (A[i] % 2 != 0) {
                    even = false;
                }

            }

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

                cnt++;

            } else {
                break;
            }
        }

        System.out.println(cnt);

    } main {

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] A = new int[N];

        for (int i = 0; i < N; i++) {
            A[i] = sc.nextInt();
        }

        /*
        int N = 6;
        int[] A = {382253568,723152896,37802240,379425024,404894720,471526144};
        */

        boolean even = true;

        int cnt = 0;

        while (true) {

            for (int i = 0; i < N; i++) {

                if (A[i] % 2 != 0) {
                    even = false;
                }

            }

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

                cnt++;

            } else {
                break;
            }
        }

        System.out.println(cnt);

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] A = new int[N]; A new int[N] N for (int i = 0; i < N; i++) {
            A[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            A[i] = sc.nextInt();
        } {
            A[i] = sc.nextInt();
        } A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc boolean even = true; even true int cnt = 0; cnt 0 while (true) {

            for (int i = 0; i < N; i++) {

                if (A[i] % 2 != 0) {
                    even = false;
                }

            }

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

                cnt++;

            } else {
                break;
            }
        } true {

            for (int i = 0; i < N; i++) {

                if (A[i] % 2 != 0) {
                    even = false;
                }

            }

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

                cnt++;

            } else {
                break;
            }
        } for (int i = 0; i < N; i++) {

                if (A[i] % 2 != 0) {
                    even = false;
                }

            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {

                if (A[i] % 2 != 0) {
                    even = false;
                }

            } {

                if (A[i] % 2 != 0) {
                    even = false;
                }

            } if (A[i] % 2 != 0) {
                    even = false;
                } A[i] % 2 != 0 A[i] % 2 A[i] A i 2 0 {
                    even = false;
                } even = false even false if (even) {
                for (int i = 0; i < N; i++) {
                    A[i] = A[i] / 2;
                }

                cnt++;

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

                cnt++;

            } 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 cnt++ cnt {
                break;
            } break; System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] A = new int[N];

        for (int i = 0; i < N; i++) {
            A[i] = sc.nextInt();
        }

        /*
        int N = 6;
        int[] A = {382253568,723152896,37802240,379425024,404894720,471526144};
        */

        boolean even = true;

        int cnt = 0;

        while (true) {

            for (int i = 0; i < N; i++) {

                if (A[i] % 2 != 0) {
                    even = false;
                }

            }

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

                cnt++;

            } else {
                break;
            }
        }

        System.out.println(cnt);

    }

} public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] A = new int[N];

        for (int i = 0; i < N; i++) {
            A[i] = sc.nextInt();
        }

        /*
        int N = 6;
        int[] A = {382253568,723152896,37802240,379425024,404894720,471526144};
        */

        boolean even = true;

        int cnt = 0;

        while (true) {

            for (int i = 0; i < N; i++) {

                if (A[i] % 2 != 0) {
                    even = false;
                }

            }

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

                cnt++;

            } else {
                break;
            }
        }

        System.out.println(cnt);

    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] A = new int[N];

        for (int i = 0; i < N; i++) {
            A[i] = sc.nextInt();
        }

        /*
        int N = 6;
        int[] A = {382253568,723152896,37802240,379425024,404894720,471526144};
        */

        boolean even = true;

        int cnt = 0;

        while (true) {

            for (int i = 0; i < N; i++) {

                if (A[i] % 2 != 0) {
                    even = false;
                }

            }

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

                cnt++;

            } else {
                break;
            }
        }

        System.out.println(cnt);

    }

}
