import java.util.Scanner;

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

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

            System.out.println(count);
        }
    }

    private static boolean isAllEven(int[] A) {
        for (int i = 0; i < A.length; i++) {
            if (A[i] % 2 == 1) {
                return false;
            }
        }
        return true;
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] A = new int[N];
            for (int i = 0; i < N; i++) {
                A[i] = in.nextInt();
            }

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

            System.out.println(count);
        }
    }

    private static boolean isAllEven(int[] A) {
        for (int i = 0; i < A.length; i++) {
            if (A[i] % 2 == 1) {
                return false;
            }
        }
        return true;
    }
} Main public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] A = new int[N];
            for (int i = 0; i < N; i++) {
                A[i] = in.nextInt();
            }

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

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

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

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

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

            System.out.println(count);
        } {
            int N = in.nextInt();
            int[] A = new int[N];
            for (int i = 0; i < N; i++) {
                A[i] = in.nextInt();
            }

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

            System.out.println(count);
        } Scanner in = new Scanner(System.in) Scanner in = new Scanner(System.in) new Scanner(System.in) int N = in.nextInt(); N in.nextInt() in.nextInt in int[] A = new int[N]; A new int[N] N for (int i = 0; i < N; i++) {
                A[i] = in.nextInt();
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                A[i] = in.nextInt();
            } {
                A[i] = in.nextInt();
            } A[i] = in.nextInt() A[i] A i in.nextInt() in.nextInt in int count = 0; count 0 for (;;) {
                if (isAllEven(A)) {
                    for (int i = 0; i < N; i++) {
                        A[i] /= 2;
                    }
                    count++;
                } else {
                    break;
                }
            } ; {
                if (isAllEven(A)) {
                    for (int i = 0; i < N; i++) {
                        A[i] /= 2;
                    }
                    count++;
                } else {
                    break;
                }
            } {
                if (isAllEven(A)) {
                    for (int i = 0; i < N; i++) {
                        A[i] /= 2;
                    }
                    count++;
                } else {
                    break;
                }
            } if (isAllEven(A)) {
                    for (int i = 0; i < N; i++) {
                        A[i] /= 2;
                    }
                    count++;
                } else {
                    break;
                } isAllEven(A) isAllEven A {
                    for (int i = 0; i < N; i++) {
                        A[i] /= 2;
                    }
                    count++;
                } 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 count++ count {
                    break;
                } break; System.out.println(count) System.out.println System.out System System.out count String[] args args private static boolean isAllEven(int[] A) {
        for (int i = 0; i < A.length; i++) {
            if (A[i] % 2 == 1) {
                return false;
            }
        }
        return true;
    } isAllEven {
        for (int i = 0; i < A.length; i++) {
            if (A[i] % 2 == 1) {
                return false;
            }
        }
        return true;
    } for (int i = 0; i < A.length; i++) {
            if (A[i] % 2 == 1) {
                return false;
            }
        } int i = 0; int i = 0; i 0 i < A.length i A.length A A.length i++ i++ i {
            if (A[i] % 2 == 1) {
                return false;
            }
        } {
            if (A[i] % 2 == 1) {
                return false;
            }
        } if (A[i] % 2 == 1) {
                return false;
            } A[i] % 2 == 1 A[i] % 2 A[i] A i 2 1 {
                return false;
            } return false; false return true; true int[] A A public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] A = new int[N];
            for (int i = 0; i < N; i++) {
                A[i] = in.nextInt();
            }

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

            System.out.println(count);
        }
    }

    private static boolean isAllEven(int[] A) {
        for (int i = 0; i < A.length; i++) {
            if (A[i] % 2 == 1) {
                return false;
            }
        }
        return true;
    }
} public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] A = new int[N];
            for (int i = 0; i < N; i++) {
                A[i] = in.nextInt();
            }

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

            System.out.println(count);
        }
    }

    private static boolean isAllEven(int[] A) {
        for (int i = 0; i < A.length; i++) {
            if (A[i] % 2 == 1) {
                return false;
            }
        }
        return true;
    }
} Main
import java.util.Scanner;

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

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

            System.out.println(count);
        }
    }

    private static boolean isAllEven(int[] A) {
        for (int i = 0; i < A.length; i++) {
            if (A[i] % 2 == 1) {
                return false;
            }
        }
        return true;
    }
}
