import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int[] x=new int[n];
		for(int i=0;i<n;i++){
			x[i] = sc.nextInt();
		}
		int cd = 0;
		for(;;){
			int t = 0;
			for(int i=0;i<n;i++){
				if(x[i]%2==0){
					x[i]/=2;
					t++;
				}
			}
			if(t==n)
				cd++;
			else
				break;
		}
		System.out.println(cd);
	}
} 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[] x=new int[n];
		for(int i=0;i<n;i++){
			x[i] = sc.nextInt();
		}
		int cd = 0;
		for(;;){
			int t = 0;
			for(int i=0;i<n;i++){
				if(x[i]%2==0){
					x[i]/=2;
					t++;
				}
			}
			if(t==n)
				cd++;
			else
				break;
		}
		System.out.println(cd);
	}
} Main public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int[] x=new int[n];
		for(int i=0;i<n;i++){
			x[i] = sc.nextInt();
		}
		int cd = 0;
		for(;;){
			int t = 0;
			for(int i=0;i<n;i++){
				if(x[i]%2==0){
					x[i]/=2;
					t++;
				}
			}
			if(t==n)
				cd++;
			else
				break;
		}
		System.out.println(cd);
	} main {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int[] x=new int[n];
		for(int i=0;i<n;i++){
			x[i] = sc.nextInt();
		}
		int cd = 0;
		for(;;){
			int t = 0;
			for(int i=0;i<n;i++){
				if(x[i]%2==0){
					x[i]/=2;
					t++;
				}
			}
			if(t==n)
				cd++;
			else
				break;
		}
		System.out.println(cd);
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] x=new int[n]; x new int[n] n for(int i=0;i<n;i++){
			x[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			x[i] = sc.nextInt();
		} {
			x[i] = sc.nextInt();
		} x[i] = sc.nextInt() x[i] x i sc.nextInt() sc.nextInt sc int cd = 0; cd 0 for(;;){
			int t = 0;
			for(int i=0;i<n;i++){
				if(x[i]%2==0){
					x[i]/=2;
					t++;
				}
			}
			if(t==n)
				cd++;
			else
				break;
		} ; {
			int t = 0;
			for(int i=0;i<n;i++){
				if(x[i]%2==0){
					x[i]/=2;
					t++;
				}
			}
			if(t==n)
				cd++;
			else
				break;
		} {
			int t = 0;
			for(int i=0;i<n;i++){
				if(x[i]%2==0){
					x[i]/=2;
					t++;
				}
			}
			if(t==n)
				cd++;
			else
				break;
		} int t = 0; t 0 for(int i=0;i<n;i++){
				if(x[i]%2==0){
					x[i]/=2;
					t++;
				}
			} int i=0; int i=0; i 0 i<n i n i++ i++ i {
				if(x[i]%2==0){
					x[i]/=2;
					t++;
				}
			} {
				if(x[i]%2==0){
					x[i]/=2;
					t++;
				}
			} if(x[i]%2==0){
					x[i]/=2;
					t++;
				} x[i]%2==0 x[i]%2 x[i] x i 2 0 {
					x[i]/=2;
					t++;
				} x[i]/=2 x[i] x i 2 t++ t if(t==n)
				cd++;
			else
				break; t==n t n cd++ cd break; System.out.println(cd) System.out.println System.out System System.out cd String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int[] x=new int[n];
		for(int i=0;i<n;i++){
			x[i] = sc.nextInt();
		}
		int cd = 0;
		for(;;){
			int t = 0;
			for(int i=0;i<n;i++){
				if(x[i]%2==0){
					x[i]/=2;
					t++;
				}
			}
			if(t==n)
				cd++;
			else
				break;
		}
		System.out.println(cd);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int[] x=new int[n];
		for(int i=0;i<n;i++){
			x[i] = sc.nextInt();
		}
		int cd = 0;
		for(;;){
			int t = 0;
			for(int i=0;i<n;i++){
				if(x[i]%2==0){
					x[i]/=2;
					t++;
				}
			}
			if(t==n)
				cd++;
			else
				break;
		}
		System.out.println(cd);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int[] x=new int[n];
		for(int i=0;i<n;i++){
			x[i] = sc.nextInt();
		}
		int cd = 0;
		for(;;){
			int t = 0;
			for(int i=0;i<n;i++){
				if(x[i]%2==0){
					x[i]/=2;
					t++;
				}
			}
			if(t==n)
				cd++;
			else
				break;
		}
		System.out.println(cd);
	}
}