import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = sc.nextInt();
        int[] aArr = new int[count];

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

        int roopCnt = 0;
        boolean hasOddNumber = false;
        while (true) {
            for (int i = 0; i < count; i++) {
                // 奇数がある
                if (aArr[i] % 2 != 0) hasOddNumber = true;
            }

            // 奇数がある時は抜ける
            if (hasOddNumber) break;

            for (int i = 0; i < count; i++) {
                aArr[i] /= 2;
            }

            roopCnt++;
        }

        System.out.println(roopCnt);
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = sc.nextInt();
        int[] aArr = new int[count];

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

        int roopCnt = 0;
        boolean hasOddNumber = false;
        while (true) {
            for (int i = 0; i < count; i++) {
                // 奇数がある
                if (aArr[i] % 2 != 0) hasOddNumber = true;
            }

            // 奇数がある時は抜ける
            if (hasOddNumber) break;

            for (int i = 0; i < count; i++) {
                aArr[i] /= 2;
            }

            roopCnt++;
        }

        System.out.println(roopCnt);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = sc.nextInt();
        int[] aArr = new int[count];

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

        int roopCnt = 0;
        boolean hasOddNumber = false;
        while (true) {
            for (int i = 0; i < count; i++) {
                // 奇数がある
                if (aArr[i] % 2 != 0) hasOddNumber = true;
            }

            // 奇数がある時は抜ける
            if (hasOddNumber) break;

            for (int i = 0; i < count; i++) {
                aArr[i] /= 2;
            }

            roopCnt++;
        }

        System.out.println(roopCnt);
    } main {
        Scanner sc = new Scanner(System.in);
        int count = sc.nextInt();
        int[] aArr = new int[count];

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

        int roopCnt = 0;
        boolean hasOddNumber = false;
        while (true) {
            for (int i = 0; i < count; i++) {
                // 奇数がある
                if (aArr[i] % 2 != 0) hasOddNumber = true;
            }

            // 奇数がある時は抜ける
            if (hasOddNumber) break;

            for (int i = 0; i < count; i++) {
                aArr[i] /= 2;
            }

            roopCnt++;
        }

        System.out.println(roopCnt);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int count = sc.nextInt(); count sc.nextInt() sc.nextInt sc int[] aArr = new int[count]; aArr new int[count] count for (int i = 0; i < count; i++) {
            aArr[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
            aArr[i] = sc.nextInt();
        } {
            aArr[i] = sc.nextInt();
        } aArr[i] = sc.nextInt() aArr[i] aArr i sc.nextInt() sc.nextInt sc int roopCnt = 0; roopCnt 0 boolean hasOddNumber = false; hasOddNumber false while (true) {
            for (int i = 0; i < count; i++) {
                // 奇数がある
                if (aArr[i] % 2 != 0) hasOddNumber = true;
            }

            // 奇数がある時は抜ける
            if (hasOddNumber) break;

            for (int i = 0; i < count; i++) {
                aArr[i] /= 2;
            }

            roopCnt++;
        } true {
            for (int i = 0; i < count; i++) {
                // 奇数がある
                if (aArr[i] % 2 != 0) hasOddNumber = true;
            }

            // 奇数がある時は抜ける
            if (hasOddNumber) break;

            for (int i = 0; i < count; i++) {
                aArr[i] /= 2;
            }

            roopCnt++;
        } for (int i = 0; i < count; i++) {
                // 奇数がある
                if (aArr[i] % 2 != 0) hasOddNumber = true;
            } int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
                // 奇数がある
                if (aArr[i] % 2 != 0) hasOddNumber = true;
            } {
                // 奇数がある
                if (aArr[i] % 2 != 0) hasOddNumber = true;
            } if (aArr[i] % 2 != 0) hasOddNumber = true; aArr[i] % 2 != 0 aArr[i] % 2 aArr[i] aArr i 2 0 hasOddNumber = true hasOddNumber true if (hasOddNumber) break; hasOddNumber break; for (int i = 0; i < count; i++) {
                aArr[i] /= 2;
            } int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
                aArr[i] /= 2;
            } {
                aArr[i] /= 2;
            } aArr[i] /= 2 aArr[i] aArr i 2 roopCnt++ roopCnt System.out.println(roopCnt) System.out.println System.out System System.out roopCnt String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = sc.nextInt();
        int[] aArr = new int[count];

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

        int roopCnt = 0;
        boolean hasOddNumber = false;
        while (true) {
            for (int i = 0; i < count; i++) {
                // 奇数がある
                if (aArr[i] % 2 != 0) hasOddNumber = true;
            }

            // 奇数がある時は抜ける
            if (hasOddNumber) break;

            for (int i = 0; i < count; i++) {
                aArr[i] /= 2;
            }

            roopCnt++;
        }

        System.out.println(roopCnt);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = sc.nextInt();
        int[] aArr = new int[count];

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

        int roopCnt = 0;
        boolean hasOddNumber = false;
        while (true) {
            for (int i = 0; i < count; i++) {
                // 奇数がある
                if (aArr[i] % 2 != 0) hasOddNumber = true;
            }

            // 奇数がある時は抜ける
            if (hasOddNumber) break;

            for (int i = 0; i < count; i++) {
                aArr[i] /= 2;
            }

            roopCnt++;
        }

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

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = sc.nextInt();
        int[] aArr = new int[count];

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

        int roopCnt = 0;
        boolean hasOddNumber = false;
        while (true) {
            for (int i = 0; i < count; i++) {
                // 奇数がある
                if (aArr[i] % 2 != 0) hasOddNumber = true;
            }

            // 奇数がある時は抜ける
            if (hasOddNumber) break;

            for (int i = 0; i < count; i++) {
                aArr[i] /= 2;
            }

            roopCnt++;
        }

        System.out.println(roopCnt);
    }
}
