import java.util.Arrays;
import java.util.Scanner;
public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[]a = new int[n];
    int[]A = new int[n];
   
    for(int i=0; i<n; i++){
        a[i] = sc.nextInt();
        while(a[i]%2 == 0) {
        	a[i] /= 2;
        	A[i]++;    	
        }
    }
    Arrays.sort(A); 	
	System.out.println(A[0]);
    }
} import java.util.Arrays; Arrays java.util 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[]a = new int[n];
    int[]A = new int[n];
   
    for(int i=0; i<n; i++){
        a[i] = sc.nextInt();
        while(a[i]%2 == 0) {
        	a[i] /= 2;
        	A[i]++;    	
        }
    }
    Arrays.sort(A); 	
	System.out.println(A[0]);
    }
} Main public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[]a = new int[n];
    int[]A = new int[n];
   
    for(int i=0; i<n; i++){
        a[i] = sc.nextInt();
        while(a[i]%2 == 0) {
        	a[i] /= 2;
        	A[i]++;    	
        }
    }
    Arrays.sort(A); 	
	System.out.println(A[0]);
    } main {
    
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[]a = new int[n];
    int[]A = new int[n];
   
    for(int i=0; i<n; i++){
        a[i] = sc.nextInt();
        while(a[i]%2 == 0) {
        	a[i] /= 2;
        	A[i]++;    	
        }
    }
    Arrays.sort(A); 	
	System.out.println(A[0]);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[]a = new int[n]; a new int[n] n int[]A = new int[n]; A new int[n] n for(int i=0; i<n; i++){
        a[i] = sc.nextInt();
        while(a[i]%2 == 0) {
        	a[i] /= 2;
        	A[i]++;    	
        }
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        a[i] = sc.nextInt();
        while(a[i]%2 == 0) {
        	a[i] /= 2;
        	A[i]++;    	
        }
    } {
        a[i] = sc.nextInt();
        while(a[i]%2 == 0) {
        	a[i] /= 2;
        	A[i]++;    	
        }
    } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc while(a[i]%2 == 0) {
        	a[i] /= 2;
        	A[i]++;    	
        } a[i]%2 == 0 a[i]%2 a[i] a i 2 0 {
        	a[i] /= 2;
        	A[i]++;    	
        } a[i] /= 2 a[i] a i 2 A[i]++ A[i] A i Arrays.sort(A) Arrays.sort Arrays A System.out.println(A[0]) System.out.println System.out System System.out A[0] A 0 String[] args args public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[]a = new int[n];
    int[]A = new int[n];
   
    for(int i=0; i<n; i++){
        a[i] = sc.nextInt();
        while(a[i]%2 == 0) {
        	a[i] /= 2;
        	A[i]++;    	
        }
    }
    Arrays.sort(A); 	
	System.out.println(A[0]);
    }
} public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[]a = new int[n];
    int[]A = new int[n];
   
    for(int i=0; i<n; i++){
        a[i] = sc.nextInt();
        while(a[i]%2 == 0) {
        	a[i] /= 2;
        	A[i]++;    	
        }
    }
    Arrays.sort(A); 	
	System.out.println(A[0]);
    }
} Main
import java.util.Arrays;
import java.util.Scanner;
public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[]a = new int[n];
    int[]A = new int[n];
   
    for(int i=0; i<n; i++){
        a[i] = sc.nextInt();
        while(a[i]%2 == 0) {
        	a[i] /= 2;
        	A[i]++;    	
        }
    }
    Arrays.sort(A); 	
	System.out.println(A[0]);
    }
}
