import java.util.*;

public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        int n = scanner.nextInt();
        int max = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            max = Math.min(max, Integer.numberOfTrailingZeros(scanner.nextInt()));
        }
        System.out.println(max);
    }
} import java.util.*; util.* java public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        int n = scanner.nextInt();
        int max = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            max = Math.min(max, Integer.numberOfTrailingZeros(scanner.nextInt()));
        }
        System.out.println(max);
    }
} Main static Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) public static void main(String[]$) {
        int n = scanner.nextInt();
        int max = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            max = Math.min(max, Integer.numberOfTrailingZeros(scanner.nextInt()));
        }
        System.out.println(max);
    } main {
        int n = scanner.nextInt();
        int max = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            max = Math.min(max, Integer.numberOfTrailingZeros(scanner.nextInt()));
        }
        System.out.println(max);
    } int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int max = Integer.MAX_VALUE; max Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < n; i++) {
            max = Math.min(max, Integer.numberOfTrailingZeros(scanner.nextInt()));
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            max = Math.min(max, Integer.numberOfTrailingZeros(scanner.nextInt()));
        } {
            max = Math.min(max, Integer.numberOfTrailingZeros(scanner.nextInt()));
        } max = Math.min(max, Integer.numberOfTrailingZeros(scanner.nextInt())) max Math.min(max, Integer.numberOfTrailingZeros(scanner.nextInt())) Math.min Math max Integer.numberOfTrailingZeros(scanner.nextInt()) Integer.numberOfTrailingZeros Integer scanner.nextInt() scanner.nextInt scanner System.out.println(max) System.out.println System.out System System.out max String[]$ $ public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        int n = scanner.nextInt();
        int max = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            max = Math.min(max, Integer.numberOfTrailingZeros(scanner.nextInt()));
        }
        System.out.println(max);
    }
} public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        int n = scanner.nextInt();
        int max = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            max = Math.min(max, Integer.numberOfTrailingZeros(scanner.nextInt()));
        }
        System.out.println(max);
    }
} Main
import java.util.*;

public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        int n = scanner.nextInt();
        int max = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            max = Math.min(max, Integer.numberOfTrailingZeros(scanner.nextInt()));
        }
        System.out.println(max);
    }
}