import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        sc.nextLine();
        String[] strs = sc.nextLine().split(" ");
        int min = 1000000000;
        for (String str : strs) {
            int result = countDiv(Integer.valueOf(str));
            if(min > result){
                min = result;
            }
            if(result == 0){
            	break;
            }
        }
        System.out.println(min);
        
        
        sc.close();
    }

    public static int countDiv(int i){
        if(i == 0) {
            return 0;
        }
        int cnt=0;
        while(i%2 == 0) {
          	i = i/2;
            cnt++;
        }
        return cnt;
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        sc.nextLine();
        String[] strs = sc.nextLine().split(" ");
        int min = 1000000000;
        for (String str : strs) {
            int result = countDiv(Integer.valueOf(str));
            if(min > result){
                min = result;
            }
            if(result == 0){
            	break;
            }
        }
        System.out.println(min);
        
        
        sc.close();
    }

    public static int countDiv(int i){
        if(i == 0) {
            return 0;
        }
        int cnt=0;
        while(i%2 == 0) {
          	i = i/2;
            cnt++;
        }
        return cnt;
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        sc.nextLine();
        String[] strs = sc.nextLine().split(" ");
        int min = 1000000000;
        for (String str : strs) {
            int result = countDiv(Integer.valueOf(str));
            if(min > result){
                min = result;
            }
            if(result == 0){
            	break;
            }
        }
        System.out.println(min);
        
        
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        sc.nextLine();
        String[] strs = sc.nextLine().split(" ");
        int min = 1000000000;
        for (String str : strs) {
            int result = countDiv(Integer.valueOf(str));
            if(min > result){
                min = result;
            }
            if(result == 0){
            	break;
            }
        }
        System.out.println(min);
        
        
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) sc.nextLine() sc.nextLine sc String[] strs = sc.nextLine().split(" "); strs sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int min = 1000000000; min 1000000000 for (String str : strs) {
            int result = countDiv(Integer.valueOf(str));
            if(min > result){
                min = result;
            }
            if(result == 0){
            	break;
            }
        } String str strs {
            int result = countDiv(Integer.valueOf(str));
            if(min > result){
                min = result;
            }
            if(result == 0){
            	break;
            }
        } {
            int result = countDiv(Integer.valueOf(str));
            if(min > result){
                min = result;
            }
            if(result == 0){
            	break;
            }
        } int result = countDiv(Integer.valueOf(str)); result countDiv(Integer.valueOf(str)) countDiv Integer.valueOf(str) Integer.valueOf Integer str if(min > result){
                min = result;
            } min > result min result {
                min = result;
            } min = result min result if(result == 0){
            	break;
            } result == 0 result 0 {
            	break;
            } break; System.out.println(min) System.out.println System.out System System.out min sc.close() sc.close sc String[] args args public static int countDiv(int i){
        if(i == 0) {
            return 0;
        }
        int cnt=0;
        while(i%2 == 0) {
          	i = i/2;
            cnt++;
        }
        return cnt;
    } countDiv {
        if(i == 0) {
            return 0;
        }
        int cnt=0;
        while(i%2 == 0) {
          	i = i/2;
            cnt++;
        }
        return cnt;
    } if(i == 0) {
            return 0;
        } i == 0 i 0 {
            return 0;
        } return 0; 0 int cnt=0; cnt 0 while(i%2 == 0) {
          	i = i/2;
            cnt++;
        } i%2 == 0 i%2 i 2 0 {
          	i = i/2;
            cnt++;
        } i = i/2 i i/2 i 2 cnt++ cnt return cnt; cnt int i i public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        sc.nextLine();
        String[] strs = sc.nextLine().split(" ");
        int min = 1000000000;
        for (String str : strs) {
            int result = countDiv(Integer.valueOf(str));
            if(min > result){
                min = result;
            }
            if(result == 0){
            	break;
            }
        }
        System.out.println(min);
        
        
        sc.close();
    }

    public static int countDiv(int i){
        if(i == 0) {
            return 0;
        }
        int cnt=0;
        while(i%2 == 0) {
          	i = i/2;
            cnt++;
        }
        return cnt;
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        sc.nextLine();
        String[] strs = sc.nextLine().split(" ");
        int min = 1000000000;
        for (String str : strs) {
            int result = countDiv(Integer.valueOf(str));
            if(min > result){
                min = result;
            }
            if(result == 0){
            	break;
            }
        }
        System.out.println(min);
        
        
        sc.close();
    }

    public static int countDiv(int i){
        if(i == 0) {
            return 0;
        }
        int cnt=0;
        while(i%2 == 0) {
          	i = i/2;
            cnt++;
        }
        return cnt;
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        sc.nextLine();
        String[] strs = sc.nextLine().split(" ");
        int min = 1000000000;
        for (String str : strs) {
            int result = countDiv(Integer.valueOf(str));
            if(min > result){
                min = result;
            }
            if(result == 0){
            	break;
            }
        }
        System.out.println(min);
        
        
        sc.close();
    }

    public static int countDiv(int i){
        if(i == 0) {
            return 0;
        }
        int cnt=0;
        while(i%2 == 0) {
          	i = i/2;
            cnt++;
        }
        return cnt;
    }
}