import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    // 標準入力
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    // 標準入力数値用
    static int[] inputval() throws Exception {
        String[] strarray = br.readLine().trim().split(" ");
        int[] intarray = new int[strarray.length];
        for (int i = 0; i < intarray.length; i++) {
            intarray[i] = Integer.parseInt(strarray[i]);
        }
        return intarray;
    }

    public static void main(String[] args) throws Exception {
	// write your code here
        int num = Integer.parseInt(br.readLine().trim());
        int[] arr = inputval();
        int[] counter = new int[num];
        for(int i=0; i<num; i++) counter[i] = 0;
        for(int i=0; i<num; i++){
            while(arr[i]%2 != 1){
                arr[i] /= 2;
                counter[i]++;
            }
        }
        int minnum=Integer.MAX_VALUE;
        for(int i=0; i<num; i++){
            if(counter[i]<minnum) minnum = counter[i];
        }
        System.out.println(minnum);

    }

}
 import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    // 標準入力
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    // 標準入力数値用
    static int[] inputval() throws Exception {
        String[] strarray = br.readLine().trim().split(" ");
        int[] intarray = new int[strarray.length];
        for (int i = 0; i < intarray.length; i++) {
            intarray[i] = Integer.parseInt(strarray[i]);
        }
        return intarray;
    }

    public static void main(String[] args) throws Exception {
	// write your code here
        int num = Integer.parseInt(br.readLine().trim());
        int[] arr = inputval();
        int[] counter = new int[num];
        for(int i=0; i<num; i++) counter[i] = 0;
        for(int i=0; i<num; i++){
            while(arr[i]%2 != 1){
                arr[i] /= 2;
                counter[i]++;
            }
        }
        int minnum=Integer.MAX_VALUE;
        for(int i=0; i<num; i++){
            if(counter[i]<minnum) minnum = counter[i];
        }
        System.out.println(minnum);

    }

} Main // 標準入力
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) // 標準入力数値用
    static int[] inputval() throws Exception {
        String[] strarray = br.readLine().trim().split(" ");
        int[] intarray = new int[strarray.length];
        for (int i = 0; i < intarray.length; i++) {
            intarray[i] = Integer.parseInt(strarray[i]);
        }
        return intarray;
    } inputval {
        String[] strarray = br.readLine().trim().split(" ");
        int[] intarray = new int[strarray.length];
        for (int i = 0; i < intarray.length; i++) {
            intarray[i] = Integer.parseInt(strarray[i]);
        }
        return intarray;
    } String[] strarray = br.readLine().trim().split(" "); strarray br.readLine().trim().split(" ") br.readLine().trim().split br.readLine().trim() br.readLine().trim br.readLine() br.readLine br " " int[] intarray = new int[strarray.length]; intarray new int[strarray.length] strarray.length strarray strarray.length for (int i = 0; i < intarray.length; i++) {
            intarray[i] = Integer.parseInt(strarray[i]);
        } int i = 0; int i = 0; i 0 i < intarray.length i intarray.length intarray intarray.length i++ i++ i {
            intarray[i] = Integer.parseInt(strarray[i]);
        } {
            intarray[i] = Integer.parseInt(strarray[i]);
        } intarray[i] = Integer.parseInt(strarray[i]) intarray[i] intarray i Integer.parseInt(strarray[i]) Integer.parseInt Integer strarray[i] strarray i return intarray; intarray public static void main(String[] args) throws Exception {
	// write your code here
        int num = Integer.parseInt(br.readLine().trim());
        int[] arr = inputval();
        int[] counter = new int[num];
        for(int i=0; i<num; i++) counter[i] = 0;
        for(int i=0; i<num; i++){
            while(arr[i]%2 != 1){
                arr[i] /= 2;
                counter[i]++;
            }
        }
        int minnum=Integer.MAX_VALUE;
        for(int i=0; i<num; i++){
            if(counter[i]<minnum) minnum = counter[i];
        }
        System.out.println(minnum);

    } main {
	// write your code here
        int num = Integer.parseInt(br.readLine().trim());
        int[] arr = inputval();
        int[] counter = new int[num];
        for(int i=0; i<num; i++) counter[i] = 0;
        for(int i=0; i<num; i++){
            while(arr[i]%2 != 1){
                arr[i] /= 2;
                counter[i]++;
            }
        }
        int minnum=Integer.MAX_VALUE;
        for(int i=0; i<num; i++){
            if(counter[i]<minnum) minnum = counter[i];
        }
        System.out.println(minnum);

    } int num = Integer.parseInt(br.readLine().trim()); num Integer.parseInt(br.readLine().trim()) Integer.parseInt Integer br.readLine().trim() br.readLine().trim br.readLine() br.readLine br int[] arr = inputval(); arr inputval() inputval int[] counter = new int[num]; counter new int[num] num for(int i=0; i<num; i++) counter[i] = 0; int i=0; int i=0; i 0 i<num i num i++ i++ i counter[i] = 0; counter[i] = 0 counter[i] counter i 0 for(int i=0; i<num; i++){
            while(arr[i]%2 != 1){
                arr[i] /= 2;
                counter[i]++;
            }
        } int i=0; int i=0; i 0 i<num i num i++ i++ i {
            while(arr[i]%2 != 1){
                arr[i] /= 2;
                counter[i]++;
            }
        } {
            while(arr[i]%2 != 1){
                arr[i] /= 2;
                counter[i]++;
            }
        } while(arr[i]%2 != 1){
                arr[i] /= 2;
                counter[i]++;
            } arr[i]%2 != 1 arr[i]%2 arr[i] arr i 2 1 {
                arr[i] /= 2;
                counter[i]++;
            } arr[i] /= 2 arr[i] arr i 2 counter[i]++ counter[i] counter i int minnum=Integer.MAX_VALUE; minnum Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i=0; i<num; i++){
            if(counter[i]<minnum) minnum = counter[i];
        } int i=0; int i=0; i 0 i<num i num i++ i++ i {
            if(counter[i]<minnum) minnum = counter[i];
        } {
            if(counter[i]<minnum) minnum = counter[i];
        } if(counter[i]<minnum) minnum = counter[i]; counter[i]<minnum counter[i] counter i minnum minnum = counter[i] minnum counter[i] counter i System.out.println(minnum) System.out.println System.out System System.out minnum String[] args args public class Main {
    // 標準入力
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    // 標準入力数値用
    static int[] inputval() throws Exception {
        String[] strarray = br.readLine().trim().split(" ");
        int[] intarray = new int[strarray.length];
        for (int i = 0; i < intarray.length; i++) {
            intarray[i] = Integer.parseInt(strarray[i]);
        }
        return intarray;
    }

    public static void main(String[] args) throws Exception {
	// write your code here
        int num = Integer.parseInt(br.readLine().trim());
        int[] arr = inputval();
        int[] counter = new int[num];
        for(int i=0; i<num; i++) counter[i] = 0;
        for(int i=0; i<num; i++){
            while(arr[i]%2 != 1){
                arr[i] /= 2;
                counter[i]++;
            }
        }
        int minnum=Integer.MAX_VALUE;
        for(int i=0; i<num; i++){
            if(counter[i]<minnum) minnum = counter[i];
        }
        System.out.println(minnum);

    }

} public class Main {
    // 標準入力
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    // 標準入力数値用
    static int[] inputval() throws Exception {
        String[] strarray = br.readLine().trim().split(" ");
        int[] intarray = new int[strarray.length];
        for (int i = 0; i < intarray.length; i++) {
            intarray[i] = Integer.parseInt(strarray[i]);
        }
        return intarray;
    }

    public static void main(String[] args) throws Exception {
	// write your code here
        int num = Integer.parseInt(br.readLine().trim());
        int[] arr = inputval();
        int[] counter = new int[num];
        for(int i=0; i<num; i++) counter[i] = 0;
        for(int i=0; i<num; i++){
            while(arr[i]%2 != 1){
                arr[i] /= 2;
                counter[i]++;
            }
        }
        int minnum=Integer.MAX_VALUE;
        for(int i=0; i<num; i++){
            if(counter[i]<minnum) minnum = counter[i];
        }
        System.out.println(minnum);

    }

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    // 標準入力
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    // 標準入力数値用
    static int[] inputval() throws Exception {
        String[] strarray = br.readLine().trim().split(" ");
        int[] intarray = new int[strarray.length];
        for (int i = 0; i < intarray.length; i++) {
            intarray[i] = Integer.parseInt(strarray[i]);
        }
        return intarray;
    }

    public static void main(String[] args) throws Exception {
	// write your code here
        int num = Integer.parseInt(br.readLine().trim());
        int[] arr = inputval();
        int[] counter = new int[num];
        for(int i=0; i<num; i++) counter[i] = 0;
        for(int i=0; i<num; i++){
            while(arr[i]%2 != 1){
                arr[i] /= 2;
                counter[i]++;
            }
        }
        int minnum=Integer.MAX_VALUE;
        for(int i=0; i<num; i++){
            if(counter[i]<minnum) minnum = counter[i];
        }
        System.out.println(minnum);

    }

}

