import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.next());
        int minDivideCount = Integer.MAX_VALUE;
        for (int i = 0; i < num; i++) {
            int count = Integer.numberOfTrailingZeros(sc.nextInt());
            if (minDivideCount > count) {
                minDivideCount = count;
            }
        }

        System.out.println(minDivideCount);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.next());
        int minDivideCount = Integer.MAX_VALUE;
        for (int i = 0; i < num; i++) {
            int count = Integer.numberOfTrailingZeros(sc.nextInt());
            if (minDivideCount > count) {
                minDivideCount = count;
            }
        }

        System.out.println(minDivideCount);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.next());
        int minDivideCount = Integer.MAX_VALUE;
        for (int i = 0; i < num; i++) {
            int count = Integer.numberOfTrailingZeros(sc.nextInt());
            if (minDivideCount > count) {
                minDivideCount = count;
            }
        }

        System.out.println(minDivideCount);
    } main {
        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.next());
        int minDivideCount = Integer.MAX_VALUE;
        for (int i = 0; i < num; i++) {
            int count = Integer.numberOfTrailingZeros(sc.nextInt());
            if (minDivideCount > count) {
                minDivideCount = count;
            }
        }

        System.out.println(minDivideCount);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = Integer.parseInt(sc.next()); num Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int minDivideCount = Integer.MAX_VALUE; minDivideCount Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < num; i++) {
            int count = Integer.numberOfTrailingZeros(sc.nextInt());
            if (minDivideCount > count) {
                minDivideCount = count;
            }
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
            int count = Integer.numberOfTrailingZeros(sc.nextInt());
            if (minDivideCount > count) {
                minDivideCount = count;
            }
        } {
            int count = Integer.numberOfTrailingZeros(sc.nextInt());
            if (minDivideCount > count) {
                minDivideCount = count;
            }
        } int count = Integer.numberOfTrailingZeros(sc.nextInt()); count Integer.numberOfTrailingZeros(sc.nextInt()) Integer.numberOfTrailingZeros Integer sc.nextInt() sc.nextInt sc if (minDivideCount > count) {
                minDivideCount = count;
            } minDivideCount > count minDivideCount count {
                minDivideCount = count;
            } minDivideCount = count minDivideCount count System.out.println(minDivideCount) System.out.println System.out System System.out minDivideCount String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.next());
        int minDivideCount = Integer.MAX_VALUE;
        for (int i = 0; i < num; i++) {
            int count = Integer.numberOfTrailingZeros(sc.nextInt());
            if (minDivideCount > count) {
                minDivideCount = count;
            }
        }

        System.out.println(minDivideCount);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.next());
        int minDivideCount = Integer.MAX_VALUE;
        for (int i = 0; i < num; i++) {
            int count = Integer.numberOfTrailingZeros(sc.nextInt());
            if (minDivideCount > count) {
                minDivideCount = count;
            }
        }

        System.out.println(minDivideCount);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.next());
        int minDivideCount = Integer.MAX_VALUE;
        for (int i = 0; i < num; i++) {
            int count = Integer.numberOfTrailingZeros(sc.nextInt());
            if (minDivideCount > count) {
                minDivideCount = count;
            }
        }

        System.out.println(minDivideCount);
    }
}