import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        ArrayList<Integer> A = new ArrayList<>();
        for (int i=0;i<n;i++){
            A.add(scanner.nextInt());
        }
        boolean b = true;
        int count=0;
        while (b){
            for (int i:A){
                if (i%2==1){
                    b = false;
                    break;
                }
            }
            if (!b){
                break;
            }
            ArrayList<Integer> B = new ArrayList<>();
            count++;
            for (int i=0;i<A.size();i++){
                B.add(A.get(i)/2);
            }
            A.clear();
            A.addAll(B);
        }
        System.out.println(count);
    }

} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        ArrayList<Integer> A = new ArrayList<>();
        for (int i=0;i<n;i++){
            A.add(scanner.nextInt());
        }
        boolean b = true;
        int count=0;
        while (b){
            for (int i:A){
                if (i%2==1){
                    b = false;
                    break;
                }
            }
            if (!b){
                break;
            }
            ArrayList<Integer> B = new ArrayList<>();
            count++;
            for (int i=0;i<A.size();i++){
                B.add(A.get(i)/2);
            }
            A.clear();
            A.addAll(B);
        }
        System.out.println(count);
    }

} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        ArrayList<Integer> A = new ArrayList<>();
        for (int i=0;i<n;i++){
            A.add(scanner.nextInt());
        }
        boolean b = true;
        int count=0;
        while (b){
            for (int i:A){
                if (i%2==1){
                    b = false;
                    break;
                }
            }
            if (!b){
                break;
            }
            ArrayList<Integer> B = new ArrayList<>();
            count++;
            for (int i=0;i<A.size();i++){
                B.add(A.get(i)/2);
            }
            A.clear();
            A.addAll(B);
        }
        System.out.println(count);
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        ArrayList<Integer> A = new ArrayList<>();
        for (int i=0;i<n;i++){
            A.add(scanner.nextInt());
        }
        boolean b = true;
        int count=0;
        while (b){
            for (int i:A){
                if (i%2==1){
                    b = false;
                    break;
                }
            }
            if (!b){
                break;
            }
            ArrayList<Integer> B = new ArrayList<>();
            count++;
            for (int i=0;i<A.size();i++){
                B.add(A.get(i)/2);
            }
            A.clear();
            A.addAll(B);
        }
        System.out.println(count);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner ArrayList<Integer> A = new ArrayList<>(); A new ArrayList<>() for (int i=0;i<n;i++){
            A.add(scanner.nextInt());
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            A.add(scanner.nextInt());
        } {
            A.add(scanner.nextInt());
        } A.add(scanner.nextInt()) A.add A scanner.nextInt() scanner.nextInt scanner boolean b = true; b true int count=0; count 0 while (b){
            for (int i:A){
                if (i%2==1){
                    b = false;
                    break;
                }
            }
            if (!b){
                break;
            }
            ArrayList<Integer> B = new ArrayList<>();
            count++;
            for (int i=0;i<A.size();i++){
                B.add(A.get(i)/2);
            }
            A.clear();
            A.addAll(B);
        } b {
            for (int i:A){
                if (i%2==1){
                    b = false;
                    break;
                }
            }
            if (!b){
                break;
            }
            ArrayList<Integer> B = new ArrayList<>();
            count++;
            for (int i=0;i<A.size();i++){
                B.add(A.get(i)/2);
            }
            A.clear();
            A.addAll(B);
        } for (int i:A){
                if (i%2==1){
                    b = false;
                    break;
                }
            } int i A {
                if (i%2==1){
                    b = false;
                    break;
                }
            } {
                if (i%2==1){
                    b = false;
                    break;
                }
            } if (i%2==1){
                    b = false;
                    break;
                } i%2==1 i%2 i 2 1 {
                    b = false;
                    break;
                } b = false b false break; if (!b){
                break;
            } !b b {
                break;
            } break; ArrayList<Integer> B = new ArrayList<>(); B new ArrayList<>() count++ count for (int i=0;i<A.size();i++){
                B.add(A.get(i)/2);
            } int i=0; int i=0; i 0 i<A.size() i A.size() A.size A i++ i++ i {
                B.add(A.get(i)/2);
            } {
                B.add(A.get(i)/2);
            } B.add(A.get(i)/2) B.add B A.get(i)/2 A.get(i) A.get A i 2 A.clear() A.clear A A.addAll(B) A.addAll A B System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        ArrayList<Integer> A = new ArrayList<>();
        for (int i=0;i<n;i++){
            A.add(scanner.nextInt());
        }
        boolean b = true;
        int count=0;
        while (b){
            for (int i:A){
                if (i%2==1){
                    b = false;
                    break;
                }
            }
            if (!b){
                break;
            }
            ArrayList<Integer> B = new ArrayList<>();
            count++;
            for (int i=0;i<A.size();i++){
                B.add(A.get(i)/2);
            }
            A.clear();
            A.addAll(B);
        }
        System.out.println(count);
    }

} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        ArrayList<Integer> A = new ArrayList<>();
        for (int i=0;i<n;i++){
            A.add(scanner.nextInt());
        }
        boolean b = true;
        int count=0;
        while (b){
            for (int i:A){
                if (i%2==1){
                    b = false;
                    break;
                }
            }
            if (!b){
                break;
            }
            ArrayList<Integer> B = new ArrayList<>();
            count++;
            for (int i=0;i<A.size();i++){
                B.add(A.get(i)/2);
            }
            A.clear();
            A.addAll(B);
        }
        System.out.println(count);
    }

} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        ArrayList<Integer> A = new ArrayList<>();
        for (int i=0;i<n;i++){
            A.add(scanner.nextInt());
        }
        boolean b = true;
        int count=0;
        while (b){
            for (int i:A){
                if (i%2==1){
                    b = false;
                    break;
                }
            }
            if (!b){
                break;
            }
            ArrayList<Integer> B = new ArrayList<>();
            count++;
            for (int i=0;i<A.size();i++){
                B.add(A.get(i)/2);
            }
            A.clear();
            A.addAll(B);
        }
        System.out.println(count);
    }

}