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 i,j=0;
		for( i=0;i<N;++i) {
		 a[i]=sc.nextInt(); 
		}
		outside:while(true) {
			for( i=0;i<N;++i) {
				if(a[i]%2==0) {
				a[i]=a[i]/2;	
				}else {
				break outside;
				}
			}
			++j;
		}
			System.out.println(j);
		
		}
			
	} 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 i,j=0;
		for( i=0;i<N;++i) {
		 a[i]=sc.nextInt(); 
		}
		outside:while(true) {
			for( i=0;i<N;++i) {
				if(a[i]%2==0) {
				a[i]=a[i]/2;	
				}else {
				break outside;
				}
			}
			++j;
		}
			System.out.println(j);
		
		}
			
	} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int a[]=new int[N];
		int i,j=0;
		for( i=0;i<N;++i) {
		 a[i]=sc.nextInt(); 
		}
		outside:while(true) {
			for( i=0;i<N;++i) {
				if(a[i]%2==0) {
				a[i]=a[i]/2;	
				}else {
				break outside;
				}
			}
			++j;
		}
			System.out.println(j);
		
		} main {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int a[]=new int[N];
		int i,j=0;
		for( i=0;i<N;++i) {
		 a[i]=sc.nextInt(); 
		}
		outside:while(true) {
			for( i=0;i<N;++i) {
				if(a[i]%2==0) {
				a[i]=a[i]/2;	
				}else {
				break outside;
				}
			}
			++j;
		}
			System.out.println(j);
		
		} 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 i i j=0; j 0 for( i=0;i<N;++i) {
		 a[i]=sc.nextInt(); 
		} i=0; i=0 i 0 i<N i N ++i ++i i {
		 a[i]=sc.nextInt(); 
		} {
		 a[i]=sc.nextInt(); 
		} a[i]=sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc System.out.println(j) System.out.println System.out System System.out j 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 i,j=0;
		for( i=0;i<N;++i) {
		 a[i]=sc.nextInt(); 
		}
		outside:while(true) {
			for( i=0;i<N;++i) {
				if(a[i]%2==0) {
				a[i]=a[i]/2;	
				}else {
				break outside;
				}
			}
			++j;
		}
			System.out.println(j);
		
		}
			
	} 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 i,j=0;
		for( i=0;i<N;++i) {
		 a[i]=sc.nextInt(); 
		}
		outside:while(true) {
			for( i=0;i<N;++i) {
				if(a[i]%2==0) {
				a[i]=a[i]/2;	
				}else {
				break outside;
				}
			}
			++j;
		}
			System.out.println(j);
		
		}
			
	} Main
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 i,j=0;
		for( i=0;i<N;++i) {
		 a[i]=sc.nextInt(); 
		}
		outside:while(true) {
			for( i=0;i<N;++i) {
				if(a[i]%2==0) {
				a[i]=a[i]/2;	
				}else {
				break outside;
				}
			}
			++j;
		}
			System.out.println(j);
		
		}
			
	}