import 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 ans = 0;
        for(int i = 0; i < N; i++){
            A[i] = sc.nextInt();
            int count = 0;
            if(A[i]%2 != 0){
                ans = 0;
                break;
            }
            while(A[i]%2 == 0){
                A[i] /= 2;
                count++;
            }
            if(count > 0){
                if(ans == 0)
                    ans = count;
                else
                    ans = Math.min(ans, count);
            }
        }
        System.out.println(ans);
    }
} import java.util.*; util.* java 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 ans = 0;
        for(int i = 0; i < N; i++){
            A[i] = sc.nextInt();
            int count = 0;
            if(A[i]%2 != 0){
                ans = 0;
                break;
            }
            while(A[i]%2 == 0){
                A[i] /= 2;
                count++;
            }
            if(count > 0){
                if(ans == 0)
                    ans = count;
                else
                    ans = Math.min(ans, count);
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        
        int N =  sc.nextInt();
        int[] A = new int[N];
        int ans = 0;
        for(int i = 0; i < N; i++){
            A[i] = sc.nextInt();
            int count = 0;
            if(A[i]%2 != 0){
                ans = 0;
                break;
            }
            while(A[i]%2 == 0){
                A[i] /= 2;
                count++;
            }
            if(count > 0){
                if(ans == 0)
                    ans = count;
                else
                    ans = Math.min(ans, count);
            }
        }
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        
        int N =  sc.nextInt();
        int[] A = new int[N];
        int ans = 0;
        for(int i = 0; i < N; i++){
            A[i] = sc.nextInt();
            int count = 0;
            if(A[i]%2 != 0){
                ans = 0;
                break;
            }
            while(A[i]%2 == 0){
                A[i] /= 2;
                count++;
            }
            if(count > 0){
                if(ans == 0)
                    ans = count;
                else
                    ans = Math.min(ans, count);
            }
        }
        System.out.println(ans);
    } 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 ans = 0; ans 0 for(int i = 0; i < N; i++){
            A[i] = sc.nextInt();
            int count = 0;
            if(A[i]%2 != 0){
                ans = 0;
                break;
            }
            while(A[i]%2 == 0){
                A[i] /= 2;
                count++;
            }
            if(count > 0){
                if(ans == 0)
                    ans = count;
                else
                    ans = Math.min(ans, count);
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            A[i] = sc.nextInt();
            int count = 0;
            if(A[i]%2 != 0){
                ans = 0;
                break;
            }
            while(A[i]%2 == 0){
                A[i] /= 2;
                count++;
            }
            if(count > 0){
                if(ans == 0)
                    ans = count;
                else
                    ans = Math.min(ans, count);
            }
        } {
            A[i] = sc.nextInt();
            int count = 0;
            if(A[i]%2 != 0){
                ans = 0;
                break;
            }
            while(A[i]%2 == 0){
                A[i] /= 2;
                count++;
            }
            if(count > 0){
                if(ans == 0)
                    ans = count;
                else
                    ans = Math.min(ans, count);
            }
        } A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc int count = 0; count 0 if(A[i]%2 != 0){
                ans = 0;
                break;
            } A[i]%2 != 0 A[i]%2 A[i] A i 2 0 {
                ans = 0;
                break;
            } ans = 0 ans 0 break; while(A[i]%2 == 0){
                A[i] /= 2;
                count++;
            } A[i]%2 == 0 A[i]%2 A[i] A i 2 0 {
                A[i] /= 2;
                count++;
            } A[i] /= 2 A[i] A i 2 count++ count if(count > 0){
                if(ans == 0)
                    ans = count;
                else
                    ans = Math.min(ans, count);
            } count > 0 count 0 {
                if(ans == 0)
                    ans = count;
                else
                    ans = Math.min(ans, count);
            } if(ans == 0)
                    ans = count;
                else
                    ans = Math.min(ans, count); ans == 0 ans 0 ans = count ans count ans = Math.min(ans, count) ans Math.min(ans, count) Math.min Math ans count System.out.println(ans) System.out.println System.out System System.out ans 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 ans = 0;
        for(int i = 0; i < N; i++){
            A[i] = sc.nextInt();
            int count = 0;
            if(A[i]%2 != 0){
                ans = 0;
                break;
            }
            while(A[i]%2 == 0){
                A[i] /= 2;
                count++;
            }
            if(count > 0){
                if(ans == 0)
                    ans = count;
                else
                    ans = Math.min(ans, count);
            }
        }
        System.out.println(ans);
    }
} 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 ans = 0;
        for(int i = 0; i < N; i++){
            A[i] = sc.nextInt();
            int count = 0;
            if(A[i]%2 != 0){
                ans = 0;
                break;
            }
            while(A[i]%2 == 0){
                A[i] /= 2;
                count++;
            }
            if(count > 0){
                if(ans == 0)
                    ans = count;
                else
                    ans = Math.min(ans, count);
            }
        }
        System.out.println(ans);
    }
} Main
import 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 ans = 0;
        for(int i = 0; i < N; i++){
            A[i] = sc.nextInt();
            int count = 0;
            if(A[i]%2 != 0){
                ans = 0;
                break;
            }
            while(A[i]%2 == 0){
                A[i] /= 2;
                count++;
            }
            if(count > 0){
                if(ans == 0)
                    ans = count;
                else
                    ans = Math.min(ans, count);
            }
        }
        System.out.println(ans);
    }
}