import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] arr = new int[N];
        boolean flg = true;
        int count = 0;

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

        while(flg) {
            boolean existOdd = false;
            for(int i = 0; i < N; i++) {
                if(arr[i] % 2 != 0){
                    flg = false;
                }
            }
            if(!flg) break;

            for(int j = 0; j < N; j++) {
                arr[j] = arr[j] / 2;
            }
            count++;
        }
        System.out.println(count);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] arr = new int[N];
        boolean flg = true;
        int count = 0;

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

        while(flg) {
            boolean existOdd = false;
            for(int i = 0; i < N; i++) {
                if(arr[i] % 2 != 0){
                    flg = false;
                }
            }
            if(!flg) break;

            for(int j = 0; j < N; j++) {
                arr[j] = arr[j] / 2;
            }
            count++;
        }
        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] arr = new int[N];
        boolean flg = true;
        int count = 0;

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

        while(flg) {
            boolean existOdd = false;
            for(int i = 0; i < N; i++) {
                if(arr[i] % 2 != 0){
                    flg = false;
                }
            }
            if(!flg) break;

            for(int j = 0; j < N; j++) {
                arr[j] = arr[j] / 2;
            }
            count++;
        }
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] arr = new int[N];
        boolean flg = true;
        int count = 0;

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

        while(flg) {
            boolean existOdd = false;
            for(int i = 0; i < N; i++) {
                if(arr[i] % 2 != 0){
                    flg = false;
                }
            }
            if(!flg) break;

            for(int j = 0; j < N; j++) {
                arr[j] = arr[j] / 2;
            }
            count++;
        }
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] arr = new int[N]; arr new int[N] N boolean flg = true; flg true int count = 0; count 0 for(int i = 0; i < N; i++) {
            arr[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            arr[i] = sc.nextInt();
        } {
            arr[i] = sc.nextInt();
        } arr[i] = sc.nextInt() arr[i] arr i sc.nextInt() sc.nextInt sc while(flg) {
            boolean existOdd = false;
            for(int i = 0; i < N; i++) {
                if(arr[i] % 2 != 0){
                    flg = false;
                }
            }
            if(!flg) break;

            for(int j = 0; j < N; j++) {
                arr[j] = arr[j] / 2;
            }
            count++;
        } flg {
            boolean existOdd = false;
            for(int i = 0; i < N; i++) {
                if(arr[i] % 2 != 0){
                    flg = false;
                }
            }
            if(!flg) break;

            for(int j = 0; j < N; j++) {
                arr[j] = arr[j] / 2;
            }
            count++;
        } boolean existOdd = false; existOdd false for(int i = 0; i < N; i++) {
                if(arr[i] % 2 != 0){
                    flg = false;
                }
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                if(arr[i] % 2 != 0){
                    flg = false;
                }
            } {
                if(arr[i] % 2 != 0){
                    flg = false;
                }
            } if(arr[i] % 2 != 0){
                    flg = false;
                } arr[i] % 2 != 0 arr[i] % 2 arr[i] arr i 2 0 {
                    flg = false;
                } flg = false flg false if(!flg) break; !flg flg break; for(int j = 0; j < N; j++) {
                arr[j] = arr[j] / 2;
            } int j = 0; int j = 0; j 0 j < N j N j++ j++ j {
                arr[j] = arr[j] / 2;
            } {
                arr[j] = arr[j] / 2;
            } arr[j] = arr[j] / 2 arr[j] arr j arr[j] / 2 arr[j] arr j 2 count++ count 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 sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] arr = new int[N];
        boolean flg = true;
        int count = 0;

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

        while(flg) {
            boolean existOdd = false;
            for(int i = 0; i < N; i++) {
                if(arr[i] % 2 != 0){
                    flg = false;
                }
            }
            if(!flg) break;

            for(int j = 0; j < N; j++) {
                arr[j] = arr[j] / 2;
            }
            count++;
        }
        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] arr = new int[N];
        boolean flg = true;
        int count = 0;

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

        while(flg) {
            boolean existOdd = false;
            for(int i = 0; i < N; i++) {
                if(arr[i] % 2 != 0){
                    flg = false;
                }
            }
            if(!flg) break;

            for(int j = 0; j < N; j++) {
                arr[j] = arr[j] / 2;
            }
            count++;
        }
        System.out.println(count);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] arr = new int[N];
        boolean flg = true;
        int count = 0;

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

        while(flg) {
            boolean existOdd = false;
            for(int i = 0; i < N; i++) {
                if(arr[i] % 2 != 0){
                    flg = false;
                }
            }
            if(!flg) break;

            for(int j = 0; j < N; j++) {
                arr[j] = arr[j] / 2;
            }
            count++;
        }
        System.out.println(count);
    }
}
