import java.util.Arrays;
import java.util.Scanner;

public class Main {
    void run() {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n];

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

        int count = 0;

        while (true) {
            boolean ok = true;
            for (int i = 0; i < n; i++) {
                if (arr[i] % 2 != 0) {
                    ok = false;
                    break;
                }
                arr[i] = arr[i] / 2;
            }
            if (!ok) break;
            count++;
        }

        System.out.println(count);
    }


    void debug(Object... os) {
        System.err.println(Arrays.deepToString(os));
    }

    public static void main(String[] args) {
        new Main().run();
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
    void run() {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n];

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

        int count = 0;

        while (true) {
            boolean ok = true;
            for (int i = 0; i < n; i++) {
                if (arr[i] % 2 != 0) {
                    ok = false;
                    break;
                }
                arr[i] = arr[i] / 2;
            }
            if (!ok) break;
            count++;
        }

        System.out.println(count);
    }


    void debug(Object... os) {
        System.err.println(Arrays.deepToString(os));
    }

    public static void main(String[] args) {
        new Main().run();
    }
} Main void run() {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n];

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

        int count = 0;

        while (true) {
            boolean ok = true;
            for (int i = 0; i < n; i++) {
                if (arr[i] % 2 != 0) {
                    ok = false;
                    break;
                }
                arr[i] = arr[i] / 2;
            }
            if (!ok) break;
            count++;
        }

        System.out.println(count);
    } run {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n];

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

        int count = 0;

        while (true) {
            boolean ok = true;
            for (int i = 0; i < n; i++) {
                if (arr[i] % 2 != 0) {
                    ok = false;
                    break;
                }
                arr[i] = arr[i] / 2;
            }
            if (!ok) break;
            count++;
        }

        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] arr = new int[n]; arr new int[n] n for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            arr[i] = sc.nextInt();
        } {
            arr[i] = sc.nextInt();
        } arr[i] = sc.nextInt() arr[i] arr i sc.nextInt() sc.nextInt sc int count = 0; count 0 while (true) {
            boolean ok = true;
            for (int i = 0; i < n; i++) {
                if (arr[i] % 2 != 0) {
                    ok = false;
                    break;
                }
                arr[i] = arr[i] / 2;
            }
            if (!ok) break;
            count++;
        } true {
            boolean ok = true;
            for (int i = 0; i < n; i++) {
                if (arr[i] % 2 != 0) {
                    ok = false;
                    break;
                }
                arr[i] = arr[i] / 2;
            }
            if (!ok) break;
            count++;
        } boolean ok = true; ok true for (int i = 0; i < n; i++) {
                if (arr[i] % 2 != 0) {
                    ok = false;
                    break;
                }
                arr[i] = arr[i] / 2;
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                if (arr[i] % 2 != 0) {
                    ok = false;
                    break;
                }
                arr[i] = arr[i] / 2;
            } {
                if (arr[i] % 2 != 0) {
                    ok = false;
                    break;
                }
                arr[i] = arr[i] / 2;
            } if (arr[i] % 2 != 0) {
                    ok = false;
                    break;
                } arr[i] % 2 != 0 arr[i] % 2 arr[i] arr i 2 0 {
                    ok = false;
                    break;
                } ok = false ok false break; arr[i] = arr[i] / 2 arr[i] arr i arr[i] / 2 arr[i] arr i 2 if (!ok) break; !ok ok break; count++ count System.out.println(count) System.out.println System.out System System.out count void debug(Object... os) {
        System.err.println(Arrays.deepToString(os));
    } debug {
        System.err.println(Arrays.deepToString(os));
    } System.err.println(Arrays.deepToString(os)) System.err.println System.err System System.err Arrays.deepToString(os) Arrays.deepToString Arrays os Object... os os public static void main(String[] args) {
        new Main().run();
    } main {
        new Main().run();
    } new Main().run() new Main().run new Main() String[] args args public class Main {
    void run() {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n];

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

        int count = 0;

        while (true) {
            boolean ok = true;
            for (int i = 0; i < n; i++) {
                if (arr[i] % 2 != 0) {
                    ok = false;
                    break;
                }
                arr[i] = arr[i] / 2;
            }
            if (!ok) break;
            count++;
        }

        System.out.println(count);
    }


    void debug(Object... os) {
        System.err.println(Arrays.deepToString(os));
    }

    public static void main(String[] args) {
        new Main().run();
    }
} public class Main {
    void run() {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n];

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

        int count = 0;

        while (true) {
            boolean ok = true;
            for (int i = 0; i < n; i++) {
                if (arr[i] % 2 != 0) {
                    ok = false;
                    break;
                }
                arr[i] = arr[i] / 2;
            }
            if (!ok) break;
            count++;
        }

        System.out.println(count);
    }


    void debug(Object... os) {
        System.err.println(Arrays.deepToString(os));
    }

    public static void main(String[] args) {
        new Main().run();
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    void run() {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n];

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

        int count = 0;

        while (true) {
            boolean ok = true;
            for (int i = 0; i < n; i++) {
                if (arr[i] % 2 != 0) {
                    ok = false;
                    break;
                }
                arr[i] = arr[i] / 2;
            }
            if (!ok) break;
            count++;
        }

        System.out.println(count);
    }


    void debug(Object... os) {
        System.err.println(Arrays.deepToString(os));
    }

    public static void main(String[] args) {
        new Main().run();
    }
}
