import java.util.Scanner;

public class Main
{
    // https://atcoder.jp/contests/abc081/tasks/abc081_b
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int size = sc.nextInt();
        int[] numbers = new int[size];
        for (int i = 0; i < size; i++) {
            numbers[i] = sc.nextInt();
        }
        System.out.println(calculate(numbers));
    }

    public static int calculate(int[] numbers)
    {
        int answer = 0;
        while(divide(numbers)) {
            answer++;
        }
        return answer;
    }

    private static boolean divide(int[] numbers)
    {
        for (int i = 0; i < numbers.length; i++) {
            if (numbers[i] % 2 != 0) {
                return false;
            }
            numbers[i] /= 2;
        }
        return true;
    }
} import java.util.Scanner; Scanner java.util public class Main
{
    // https://atcoder.jp/contests/abc081/tasks/abc081_b
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int size = sc.nextInt();
        int[] numbers = new int[size];
        for (int i = 0; i < size; i++) {
            numbers[i] = sc.nextInt();
        }
        System.out.println(calculate(numbers));
    }

    public static int calculate(int[] numbers)
    {
        int answer = 0;
        while(divide(numbers)) {
            answer++;
        }
        return answer;
    }

    private static boolean divide(int[] numbers)
    {
        for (int i = 0; i < numbers.length; i++) {
            if (numbers[i] % 2 != 0) {
                return false;
            }
            numbers[i] /= 2;
        }
        return true;
    }
} Main // https://atcoder.jp/contests/abc081/tasks/abc081_b
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int size = sc.nextInt();
        int[] numbers = new int[size];
        for (int i = 0; i < size; i++) {
            numbers[i] = sc.nextInt();
        }
        System.out.println(calculate(numbers));
    } main {
        Scanner sc = new Scanner(System.in);
        int size = sc.nextInt();
        int[] numbers = new int[size];
        for (int i = 0; i < size; i++) {
            numbers[i] = sc.nextInt();
        }
        System.out.println(calculate(numbers));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int size = sc.nextInt(); size sc.nextInt() sc.nextInt sc int[] numbers = new int[size]; numbers new int[size] size for (int i = 0; i < size; i++) {
            numbers[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < size i size i++ i++ i {
            numbers[i] = sc.nextInt();
        } {
            numbers[i] = sc.nextInt();
        } numbers[i] = sc.nextInt() numbers[i] numbers i sc.nextInt() sc.nextInt sc System.out.println(calculate(numbers)) System.out.println System.out System System.out calculate(numbers) calculate numbers String[] args args public static int calculate(int[] numbers)
    {
        int answer = 0;
        while(divide(numbers)) {
            answer++;
        }
        return answer;
    } calculate {
        int answer = 0;
        while(divide(numbers)) {
            answer++;
        }
        return answer;
    } int answer = 0; answer 0 while(divide(numbers)) {
            answer++;
        } divide(numbers) divide numbers {
            answer++;
        } answer++ answer return answer; answer int[] numbers numbers private static boolean divide(int[] numbers)
    {
        for (int i = 0; i < numbers.length; i++) {
            if (numbers[i] % 2 != 0) {
                return false;
            }
            numbers[i] /= 2;
        }
        return true;
    } divide {
        for (int i = 0; i < numbers.length; i++) {
            if (numbers[i] % 2 != 0) {
                return false;
            }
            numbers[i] /= 2;
        }
        return true;
    } for (int i = 0; i < numbers.length; i++) {
            if (numbers[i] % 2 != 0) {
                return false;
            }
            numbers[i] /= 2;
        } int i = 0; int i = 0; i 0 i < numbers.length i numbers.length numbers numbers.length i++ i++ i {
            if (numbers[i] % 2 != 0) {
                return false;
            }
            numbers[i] /= 2;
        } {
            if (numbers[i] % 2 != 0) {
                return false;
            }
            numbers[i] /= 2;
        } if (numbers[i] % 2 != 0) {
                return false;
            } numbers[i] % 2 != 0 numbers[i] % 2 numbers[i] numbers i 2 0 {
                return false;
            } return false; false numbers[i] /= 2 numbers[i] numbers i 2 return true; true int[] numbers numbers public class Main
{
    // https://atcoder.jp/contests/abc081/tasks/abc081_b
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int size = sc.nextInt();
        int[] numbers = new int[size];
        for (int i = 0; i < size; i++) {
            numbers[i] = sc.nextInt();
        }
        System.out.println(calculate(numbers));
    }

    public static int calculate(int[] numbers)
    {
        int answer = 0;
        while(divide(numbers)) {
            answer++;
        }
        return answer;
    }

    private static boolean divide(int[] numbers)
    {
        for (int i = 0; i < numbers.length; i++) {
            if (numbers[i] % 2 != 0) {
                return false;
            }
            numbers[i] /= 2;
        }
        return true;
    }
} public class Main
{
    // https://atcoder.jp/contests/abc081/tasks/abc081_b
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int size = sc.nextInt();
        int[] numbers = new int[size];
        for (int i = 0; i < size; i++) {
            numbers[i] = sc.nextInt();
        }
        System.out.println(calculate(numbers));
    }

    public static int calculate(int[] numbers)
    {
        int answer = 0;
        while(divide(numbers)) {
            answer++;
        }
        return answer;
    }

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

public class Main
{
    // https://atcoder.jp/contests/abc081/tasks/abc081_b
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int size = sc.nextInt();
        int[] numbers = new int[size];
        for (int i = 0; i < size; i++) {
            numbers[i] = sc.nextInt();
        }
        System.out.println(calculate(numbers));
    }

    public static int calculate(int[] numbers)
    {
        int answer = 0;
        while(divide(numbers)) {
            answer++;
        }
        return answer;
    }

    private static boolean divide(int[] numbers)
    {
        for (int i = 0; i < numbers.length; i++) {
            if (numbers[i] % 2 != 0) {
                return false;
            }
            numbers[i] /= 2;
        }
        return true;
    }
}
