import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int n = Integer.parseInt(br.readLine());
        String[] input = br.readLine().split(" ");
        long[] numbers = new long[n];
        int ans = 0;
        
        for(int i = 0; i < n; i++){
            numbers[i] = Long.parseLong(input[i]);
        }
        
        label:
        while(true){
            for(int i = 0; i < n; i++){
                if(numbers[i] % 2 == 0){
                    numbers[i] /= 2;
                }else{
                    break label;
                }
            }
            ans++;
        }
        
        out.println(ans);
        out.close();
        
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int n = Integer.parseInt(br.readLine());
        String[] input = br.readLine().split(" ");
        long[] numbers = new long[n];
        int ans = 0;
        
        for(int i = 0; i < n; i++){
            numbers[i] = Long.parseLong(input[i]);
        }
        
        label:
        while(true){
            for(int i = 0; i < n; i++){
                if(numbers[i] % 2 == 0){
                    numbers[i] /= 2;
                }else{
                    break label;
                }
            }
            ans++;
        }
        
        out.println(ans);
        out.close();
        
    }
} Main public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int n = Integer.parseInt(br.readLine());
        String[] input = br.readLine().split(" ");
        long[] numbers = new long[n];
        int ans = 0;
        
        for(int i = 0; i < n; i++){
            numbers[i] = Long.parseLong(input[i]);
        }
        
        label:
        while(true){
            for(int i = 0; i < n; i++){
                if(numbers[i] % 2 == 0){
                    numbers[i] /= 2;
                }else{
                    break label;
                }
            }
            ans++;
        }
        
        out.println(ans);
        out.close();
        
    } main {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int n = Integer.parseInt(br.readLine());
        String[] input = br.readLine().split(" ");
        long[] numbers = new long[n];
        int ans = 0;
        
        for(int i = 0; i < n; i++){
            numbers[i] = Long.parseLong(input[i]);
        }
        
        label:
        while(true){
            for(int i = 0; i < n; i++){
                if(numbers[i] % 2 == 0){
                    numbers[i] /= 2;
                }else{
                    break label;
                }
            }
            ans++;
        }
        
        out.println(ans);
        out.close();
        
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out)); out new PrintWriter(new OutputStreamWriter(System.out)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String[] input = br.readLine().split(" "); input br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " long[] numbers = new long[n]; numbers new long[n] n int ans = 0; ans 0 for(int i = 0; i < n; i++){
            numbers[i] = Long.parseLong(input[i]);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            numbers[i] = Long.parseLong(input[i]);
        } {
            numbers[i] = Long.parseLong(input[i]);
        } numbers[i] = Long.parseLong(input[i]) numbers[i] numbers i Long.parseLong(input[i]) Long.parseLong Long input[i] input i out.println(ans) out.println out ans out.close() out.close out String[] args args public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int n = Integer.parseInt(br.readLine());
        String[] input = br.readLine().split(" ");
        long[] numbers = new long[n];
        int ans = 0;
        
        for(int i = 0; i < n; i++){
            numbers[i] = Long.parseLong(input[i]);
        }
        
        label:
        while(true){
            for(int i = 0; i < n; i++){
                if(numbers[i] % 2 == 0){
                    numbers[i] /= 2;
                }else{
                    break label;
                }
            }
            ans++;
        }
        
        out.println(ans);
        out.close();
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int n = Integer.parseInt(br.readLine());
        String[] input = br.readLine().split(" ");
        long[] numbers = new long[n];
        int ans = 0;
        
        for(int i = 0; i < n; i++){
            numbers[i] = Long.parseLong(input[i]);
        }
        
        label:
        while(true){
            for(int i = 0; i < n; i++){
                if(numbers[i] % 2 == 0){
                    numbers[i] /= 2;
                }else{
                    break label;
                }
            }
            ans++;
        }
        
        out.println(ans);
        out.close();
        
    }
} Main
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int n = Integer.parseInt(br.readLine());
        String[] input = br.readLine().split(" ");
        long[] numbers = new long[n];
        int ans = 0;
        
        for(int i = 0; i < n; i++){
            numbers[i] = Long.parseLong(input[i]);
        }
        
        label:
        while(true){
            for(int i = 0; i < n; i++){
                if(numbers[i] % 2 == 0){
                    numbers[i] /= 2;
                }else{
                    break label;
                }
            }
            ans++;
        }
        
        out.println(ans);
        out.close();
        
    }
}