import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            String strSplit[] = br.readLine().split(" ");
            long A[] = new long[N];
            
            for(int i=0; i<N; i++){
                A[i] = Integer.parseInt(strSplit[i]);
            }
            
            int ans = 0;
            boolean even = true;
            while(true){
                for(int i=0; i<N; i++){
                    if(A[i]%2 != 0){
                        even = false;
                        break;
                    }else if(i == N-1){
                        ans++;
                    }
                    
                    A[i] = A[i]/2;
                }
                
                if(!even){
                    break;
                }
            }
            
            System.out.println(ans);
        }catch(Exception e){
            
        }
    }
} import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            String strSplit[] = br.readLine().split(" ");
            long A[] = new long[N];
            
            for(int i=0; i<N; i++){
                A[i] = Integer.parseInt(strSplit[i]);
            }
            
            int ans = 0;
            boolean even = true;
            while(true){
                for(int i=0; i<N; i++){
                    if(A[i]%2 != 0){
                        even = false;
                        break;
                    }else if(i == N-1){
                        ans++;
                    }
                    
                    A[i] = A[i]/2;
                }
                
                if(!even){
                    break;
                }
            }
            
            System.out.println(ans);
        }catch(Exception e){
            
        }
    }
} Main public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            String strSplit[] = br.readLine().split(" ");
            long A[] = new long[N];
            
            for(int i=0; i<N; i++){
                A[i] = Integer.parseInt(strSplit[i]);
            }
            
            int ans = 0;
            boolean even = true;
            while(true){
                for(int i=0; i<N; i++){
                    if(A[i]%2 != 0){
                        even = false;
                        break;
                    }else if(i == N-1){
                        ans++;
                    }
                    
                    A[i] = A[i]/2;
                }
                
                if(!even){
                    break;
                }
            }
            
            System.out.println(ans);
        }catch(Exception e){
            
        }
    } main {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            String strSplit[] = br.readLine().split(" ");
            long A[] = new long[N];
            
            for(int i=0; i<N; i++){
                A[i] = Integer.parseInt(strSplit[i]);
            }
            
            int ans = 0;
            boolean even = true;
            while(true){
                for(int i=0; i<N; i++){
                    if(A[i]%2 != 0){
                        even = false;
                        break;
                    }else if(i == N-1){
                        ans++;
                    }
                    
                    A[i] = A[i]/2;
                }
                
                if(!even){
                    break;
                }
            }
            
            System.out.println(ans);
        }catch(Exception e){
            
        }
    } try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            String strSplit[] = br.readLine().split(" ");
            long A[] = new long[N];
            
            for(int i=0; i<N; i++){
                A[i] = Integer.parseInt(strSplit[i]);
            }
            
            int ans = 0;
            boolean even = true;
            while(true){
                for(int i=0; i<N; i++){
                    if(A[i]%2 != 0){
                        even = false;
                        break;
                    }else if(i == N-1){
                        ans++;
                    }
                    
                    A[i] = A[i]/2;
                }
                
                if(!even){
                    break;
                }
            }
            
            System.out.println(ans);
        }catch(Exception e){
            
        } catch(Exception e){
            
        } Exception e {
            
        } {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            String strSplit[] = br.readLine().split(" ");
            long A[] = new long[N];
            
            for(int i=0; i<N; i++){
                A[i] = Integer.parseInt(strSplit[i]);
            }
            
            int ans = 0;
            boolean even = true;
            while(true){
                for(int i=0; i<N; i++){
                    if(A[i]%2 != 0){
                        even = false;
                        break;
                    }else if(i == N-1){
                        ans++;
                    }
                    
                    A[i] = A[i]/2;
                }
                
                if(!even){
                    break;
                }
            }
            
            System.out.println(ans);
        } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int N = Integer.parseInt(br.readLine()); N Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String strSplit[] = br.readLine().split(" "); strSplit br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " long A[] = new long[N]; A new long[N] N for(int i=0; i<N; i++){
                A[i] = Integer.parseInt(strSplit[i]);
            } int i=0; int i=0; i 0 i<N i N i++ i++ i {
                A[i] = Integer.parseInt(strSplit[i]);
            } {
                A[i] = Integer.parseInt(strSplit[i]);
            } A[i] = Integer.parseInt(strSplit[i]) A[i] A i Integer.parseInt(strSplit[i]) Integer.parseInt Integer strSplit[i] strSplit i int ans = 0; ans 0 boolean even = true; even true while(true){
                for(int i=0; i<N; i++){
                    if(A[i]%2 != 0){
                        even = false;
                        break;
                    }else if(i == N-1){
                        ans++;
                    }
                    
                    A[i] = A[i]/2;
                }
                
                if(!even){
                    break;
                }
            } true {
                for(int i=0; i<N; i++){
                    if(A[i]%2 != 0){
                        even = false;
                        break;
                    }else if(i == N-1){
                        ans++;
                    }
                    
                    A[i] = A[i]/2;
                }
                
                if(!even){
                    break;
                }
            } for(int i=0; i<N; i++){
                    if(A[i]%2 != 0){
                        even = false;
                        break;
                    }else if(i == N-1){
                        ans++;
                    }
                    
                    A[i] = A[i]/2;
                } int i=0; int i=0; i 0 i<N i N i++ i++ i {
                    if(A[i]%2 != 0){
                        even = false;
                        break;
                    }else if(i == N-1){
                        ans++;
                    }
                    
                    A[i] = A[i]/2;
                } {
                    if(A[i]%2 != 0){
                        even = false;
                        break;
                    }else if(i == N-1){
                        ans++;
                    }
                    
                    A[i] = A[i]/2;
                } if(A[i]%2 != 0){
                        even = false;
                        break;
                    }else if(i == N-1){
                        ans++;
                    } A[i]%2 != 0 A[i]%2 A[i] A i 2 0 {
                        even = false;
                        break;
                    } even = false even false break; if(i == N-1){
                        ans++;
                    } i == N-1 i N-1 N 1 {
                        ans++;
                    } ans++ ans A[i] = A[i]/2 A[i] A i A[i]/2 A[i] A i 2 if(!even){
                    break;
                } !even even {
                    break;
                } break; 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) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            String strSplit[] = br.readLine().split(" ");
            long A[] = new long[N];
            
            for(int i=0; i<N; i++){
                A[i] = Integer.parseInt(strSplit[i]);
            }
            
            int ans = 0;
            boolean even = true;
            while(true){
                for(int i=0; i<N; i++){
                    if(A[i]%2 != 0){
                        even = false;
                        break;
                    }else if(i == N-1){
                        ans++;
                    }
                    
                    A[i] = A[i]/2;
                }
                
                if(!even){
                    break;
                }
            }
            
            System.out.println(ans);
        }catch(Exception e){
            
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            String strSplit[] = br.readLine().split(" ");
            long A[] = new long[N];
            
            for(int i=0; i<N; i++){
                A[i] = Integer.parseInt(strSplit[i]);
            }
            
            int ans = 0;
            boolean even = true;
            while(true){
                for(int i=0; i<N; i++){
                    if(A[i]%2 != 0){
                        even = false;
                        break;
                    }else if(i == N-1){
                        ans++;
                    }
                    
                    A[i] = A[i]/2;
                }
                
                if(!even){
                    break;
                }
            }
            
            System.out.println(ans);
        }catch(Exception e){
            
        }
    }
} Main
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            String strSplit[] = br.readLine().split(" ");
            long A[] = new long[N];
            
            for(int i=0; i<N; i++){
                A[i] = Integer.parseInt(strSplit[i]);
            }
            
            int ans = 0;
            boolean even = true;
            while(true){
                for(int i=0; i<N; i++){
                    if(A[i]%2 != 0){
                        even = false;
                        break;
                    }else if(i == N-1){
                        ans++;
                    }
                    
                    A[i] = A[i]/2;
                }
                
                if(!even){
                    break;
                }
            }
            
            System.out.println(ans);
        }catch(Exception e){
            
        }
    }
}