import java.util.*;

public class Main {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        ArrayList<Long> input_list = new ArrayList();

        int ans = 0;

        long elm = -1;
        boolean loop_flg = true;
        for (int i = 0; i < N; i++) {
            elm = sc.nextLong();
            if (elm % 2 != 0) {
                System.out.println(ans);
                loop_flg = false;
                break;
            } else {
                input_list.add(elm);
            }
        }

        while (loop_flg) {
            for (int i = 0; i < N; i++) {
                elm = input_list.get(i);
                if (elm % 2 != 0) {
                    System.out.println(ans);
                    loop_flg = false;
                    break;
                } else {
                    input_list.set(i, elm / 2);
                }
            }
            ans++;
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        ArrayList<Long> input_list = new ArrayList();

        int ans = 0;

        long elm = -1;
        boolean loop_flg = true;
        for (int i = 0; i < N; i++) {
            elm = sc.nextLong();
            if (elm % 2 != 0) {
                System.out.println(ans);
                loop_flg = false;
                break;
            } else {
                input_list.add(elm);
            }
        }

        while (loop_flg) {
            for (int i = 0; i < N; i++) {
                elm = input_list.get(i);
                if (elm % 2 != 0) {
                    System.out.println(ans);
                    loop_flg = false;
                    break;
                } else {
                    input_list.set(i, elm / 2);
                }
            }
            ans++;
        }
    }
} Main public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        ArrayList<Long> input_list = new ArrayList();

        int ans = 0;

        long elm = -1;
        boolean loop_flg = true;
        for (int i = 0; i < N; i++) {
            elm = sc.nextLong();
            if (elm % 2 != 0) {
                System.out.println(ans);
                loop_flg = false;
                break;
            } else {
                input_list.add(elm);
            }
        }

        while (loop_flg) {
            for (int i = 0; i < N; i++) {
                elm = input_list.get(i);
                if (elm % 2 != 0) {
                    System.out.println(ans);
                    loop_flg = false;
                    break;
                } else {
                    input_list.set(i, elm / 2);
                }
            }
            ans++;
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        ArrayList<Long> input_list = new ArrayList();

        int ans = 0;

        long elm = -1;
        boolean loop_flg = true;
        for (int i = 0; i < N; i++) {
            elm = sc.nextLong();
            if (elm % 2 != 0) {
                System.out.println(ans);
                loop_flg = false;
                break;
            } else {
                input_list.add(elm);
            }
        }

        while (loop_flg) {
            for (int i = 0; i < N; i++) {
                elm = input_list.get(i);
                if (elm % 2 != 0) {
                    System.out.println(ans);
                    loop_flg = false;
                    break;
                } else {
                    input_list.set(i, elm / 2);
                }
            }
            ans++;
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc ArrayList<Long> input_list = new ArrayList(); input_list new ArrayList() int ans = 0; ans 0 long elm = -1; elm -1 1 boolean loop_flg = true; loop_flg true for (int i = 0; i < N; i++) {
            elm = sc.nextLong();
            if (elm % 2 != 0) {
                System.out.println(ans);
                loop_flg = false;
                break;
            } else {
                input_list.add(elm);
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            elm = sc.nextLong();
            if (elm % 2 != 0) {
                System.out.println(ans);
                loop_flg = false;
                break;
            } else {
                input_list.add(elm);
            }
        } {
            elm = sc.nextLong();
            if (elm % 2 != 0) {
                System.out.println(ans);
                loop_flg = false;
                break;
            } else {
                input_list.add(elm);
            }
        } elm = sc.nextLong() elm sc.nextLong() sc.nextLong sc if (elm % 2 != 0) {
                System.out.println(ans);
                loop_flg = false;
                break;
            } else {
                input_list.add(elm);
            } elm % 2 != 0 elm % 2 elm 2 0 {
                System.out.println(ans);
                loop_flg = false;
                break;
            } System.out.println(ans) System.out.println System.out System System.out ans loop_flg = false loop_flg false break; {
                input_list.add(elm);
            } input_list.add(elm) input_list.add input_list elm while (loop_flg) {
            for (int i = 0; i < N; i++) {
                elm = input_list.get(i);
                if (elm % 2 != 0) {
                    System.out.println(ans);
                    loop_flg = false;
                    break;
                } else {
                    input_list.set(i, elm / 2);
                }
            }
            ans++;
        } loop_flg {
            for (int i = 0; i < N; i++) {
                elm = input_list.get(i);
                if (elm % 2 != 0) {
                    System.out.println(ans);
                    loop_flg = false;
                    break;
                } else {
                    input_list.set(i, elm / 2);
                }
            }
            ans++;
        } for (int i = 0; i < N; i++) {
                elm = input_list.get(i);
                if (elm % 2 != 0) {
                    System.out.println(ans);
                    loop_flg = false;
                    break;
                } else {
                    input_list.set(i, elm / 2);
                }
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                elm = input_list.get(i);
                if (elm % 2 != 0) {
                    System.out.println(ans);
                    loop_flg = false;
                    break;
                } else {
                    input_list.set(i, elm / 2);
                }
            } {
                elm = input_list.get(i);
                if (elm % 2 != 0) {
                    System.out.println(ans);
                    loop_flg = false;
                    break;
                } else {
                    input_list.set(i, elm / 2);
                }
            } elm = input_list.get(i) elm input_list.get(i) input_list.get input_list i if (elm % 2 != 0) {
                    System.out.println(ans);
                    loop_flg = false;
                    break;
                } else {
                    input_list.set(i, elm / 2);
                } elm % 2 != 0 elm % 2 elm 2 0 {
                    System.out.println(ans);
                    loop_flg = false;
                    break;
                } System.out.println(ans) System.out.println System.out System System.out ans loop_flg = false loop_flg false break; {
                    input_list.set(i, elm / 2);
                } input_list.set(i, elm / 2) input_list.set input_list i elm / 2 elm 2 ans++ ans String... args args public class Main {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        ArrayList<Long> input_list = new ArrayList();

        int ans = 0;

        long elm = -1;
        boolean loop_flg = true;
        for (int i = 0; i < N; i++) {
            elm = sc.nextLong();
            if (elm % 2 != 0) {
                System.out.println(ans);
                loop_flg = false;
                break;
            } else {
                input_list.add(elm);
            }
        }

        while (loop_flg) {
            for (int i = 0; i < N; i++) {
                elm = input_list.get(i);
                if (elm % 2 != 0) {
                    System.out.println(ans);
                    loop_flg = false;
                    break;
                } else {
                    input_list.set(i, elm / 2);
                }
            }
            ans++;
        }
    }
} public class Main {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        ArrayList<Long> input_list = new ArrayList();

        int ans = 0;

        long elm = -1;
        boolean loop_flg = true;
        for (int i = 0; i < N; i++) {
            elm = sc.nextLong();
            if (elm % 2 != 0) {
                System.out.println(ans);
                loop_flg = false;
                break;
            } else {
                input_list.add(elm);
            }
        }

        while (loop_flg) {
            for (int i = 0; i < N; i++) {
                elm = input_list.get(i);
                if (elm % 2 != 0) {
                    System.out.println(ans);
                    loop_flg = false;
                    break;
                } else {
                    input_list.set(i, elm / 2);
                }
            }
            ans++;
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        ArrayList<Long> input_list = new ArrayList();

        int ans = 0;

        long elm = -1;
        boolean loop_flg = true;
        for (int i = 0; i < N; i++) {
            elm = sc.nextLong();
            if (elm % 2 != 0) {
                System.out.println(ans);
                loop_flg = false;
                break;
            } else {
                input_list.add(elm);
            }
        }

        while (loop_flg) {
            for (int i = 0; i < N; i++) {
                elm = input_list.get(i);
                if (elm % 2 != 0) {
                    System.out.println(ans);
                    loop_flg = false;
                    break;
                } else {
                    input_list.set(i, elm / 2);
                }
            }
            ans++;
        }
    }
}