import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();//, a = sc.nextInt(),b=sc.nextInt();
		//int x=sc.nextInt();//,k=sc.nextInt();
		long sum=0,count=0,flag=0,max=-999999,min=99999;
		long[] array=new long[n];
		//String s=sc.next(),t=sc.next();
		String buff;
		//String[] arrays = new String[a];
		for(int i=0;i<n;i++) {
			array[i]=sc.nextLong();
		}
		for(int j=0;j<30;j++) {
			for(int i=0;i<n;i++) {
				if(array[i]%2==0) {
					array[i]=array[i]/2;
				}else {
					System.out.println(j);
					System.exit(0);
				}
			}
		}
		//System.out.println(max);



	}
	public static int sample(int n) {
		return n;
	}

} 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();//, a = sc.nextInt(),b=sc.nextInt();
		//int x=sc.nextInt();//,k=sc.nextInt();
		long sum=0,count=0,flag=0,max=-999999,min=99999;
		long[] array=new long[n];
		//String s=sc.next(),t=sc.next();
		String buff;
		//String[] arrays = new String[a];
		for(int i=0;i<n;i++) {
			array[i]=sc.nextLong();
		}
		for(int j=0;j<30;j++) {
			for(int i=0;i<n;i++) {
				if(array[i]%2==0) {
					array[i]=array[i]/2;
				}else {
					System.out.println(j);
					System.exit(0);
				}
			}
		}
		//System.out.println(max);



	}
	public static int sample(int n) {
		return n;
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();//, a = sc.nextInt(),b=sc.nextInt();
		//int x=sc.nextInt();//,k=sc.nextInt();
		long sum=0,count=0,flag=0,max=-999999,min=99999;
		long[] array=new long[n];
		//String s=sc.next(),t=sc.next();
		String buff;
		//String[] arrays = new String[a];
		for(int i=0;i<n;i++) {
			array[i]=sc.nextLong();
		}
		for(int j=0;j<30;j++) {
			for(int i=0;i<n;i++) {
				if(array[i]%2==0) {
					array[i]=array[i]/2;
				}else {
					System.out.println(j);
					System.exit(0);
				}
			}
		}
		//System.out.println(max);



	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();//, a = sc.nextInt(),b=sc.nextInt();
		//int x=sc.nextInt();//,k=sc.nextInt();
		long sum=0,count=0,flag=0,max=-999999,min=99999;
		long[] array=new long[n];
		//String s=sc.next(),t=sc.next();
		String buff;
		//String[] arrays = new String[a];
		for(int i=0;i<n;i++) {
			array[i]=sc.nextLong();
		}
		for(int j=0;j<30;j++) {
			for(int i=0;i<n;i++) {
				if(array[i]%2==0) {
					array[i]=array[i]/2;
				}else {
					System.out.println(j);
					System.exit(0);
				}
			}
		}
		//System.out.println(max);



	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc long sum=0 sum 0 count=0 count 0 flag=0 flag 0 max=-999999 max -999999 999999 min=99999; min 99999 long[] array=new long[n]; array new long[n] n String buff; buff for(int i=0;i<n;i++) {
			array[i]=sc.nextLong();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			array[i]=sc.nextLong();
		} {
			array[i]=sc.nextLong();
		} array[i]=sc.nextLong() array[i] array i sc.nextLong() sc.nextLong sc for(int j=0;j<30;j++) {
			for(int i=0;i<n;i++) {
				if(array[i]%2==0) {
					array[i]=array[i]/2;
				}else {
					System.out.println(j);
					System.exit(0);
				}
			}
		} int j=0; int j=0; j 0 j<30 j 30 j++ j++ j {
			for(int i=0;i<n;i++) {
				if(array[i]%2==0) {
					array[i]=array[i]/2;
				}else {
					System.out.println(j);
					System.exit(0);
				}
			}
		} {
			for(int i=0;i<n;i++) {
				if(array[i]%2==0) {
					array[i]=array[i]/2;
				}else {
					System.out.println(j);
					System.exit(0);
				}
			}
		} for(int i=0;i<n;i++) {
				if(array[i]%2==0) {
					array[i]=array[i]/2;
				}else {
					System.out.println(j);
					System.exit(0);
				}
			} int i=0; int i=0; i 0 i<n i n i++ i++ i {
				if(array[i]%2==0) {
					array[i]=array[i]/2;
				}else {
					System.out.println(j);
					System.exit(0);
				}
			} {
				if(array[i]%2==0) {
					array[i]=array[i]/2;
				}else {
					System.out.println(j);
					System.exit(0);
				}
			} if(array[i]%2==0) {
					array[i]=array[i]/2;
				}else {
					System.out.println(j);
					System.exit(0);
				} array[i]%2==0 array[i]%2 array[i] array i 2 0 {
					array[i]=array[i]/2;
				} array[i]=array[i]/2 array[i] array i array[i]/2 array[i] array i 2 {
					System.out.println(j);
					System.exit(0);
				} System.out.println(j) System.out.println System.out System System.out j System.exit(0) System.exit System 0 String[] args args public static int sample(int n) {
		return n;
	} sample {
		return n;
	} return n; n int n n public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();//, a = sc.nextInt(),b=sc.nextInt();
		//int x=sc.nextInt();//,k=sc.nextInt();
		long sum=0,count=0,flag=0,max=-999999,min=99999;
		long[] array=new long[n];
		//String s=sc.next(),t=sc.next();
		String buff;
		//String[] arrays = new String[a];
		for(int i=0;i<n;i++) {
			array[i]=sc.nextLong();
		}
		for(int j=0;j<30;j++) {
			for(int i=0;i<n;i++) {
				if(array[i]%2==0) {
					array[i]=array[i]/2;
				}else {
					System.out.println(j);
					System.exit(0);
				}
			}
		}
		//System.out.println(max);



	}
	public static int sample(int n) {
		return n;
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();//, a = sc.nextInt(),b=sc.nextInt();
		//int x=sc.nextInt();//,k=sc.nextInt();
		long sum=0,count=0,flag=0,max=-999999,min=99999;
		long[] array=new long[n];
		//String s=sc.next(),t=sc.next();
		String buff;
		//String[] arrays = new String[a];
		for(int i=0;i<n;i++) {
			array[i]=sc.nextLong();
		}
		for(int j=0;j<30;j++) {
			for(int i=0;i<n;i++) {
				if(array[i]%2==0) {
					array[i]=array[i]/2;
				}else {
					System.out.println(j);
					System.exit(0);
				}
			}
		}
		//System.out.println(max);



	}
	public static int sample(int n) {
		return n;
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();//, a = sc.nextInt(),b=sc.nextInt();
		//int x=sc.nextInt();//,k=sc.nextInt();
		long sum=0,count=0,flag=0,max=-999999,min=99999;
		long[] array=new long[n];
		//String s=sc.next(),t=sc.next();
		String buff;
		//String[] arrays = new String[a];
		for(int i=0;i<n;i++) {
			array[i]=sc.nextLong();
		}
		for(int j=0;j<30;j++) {
			for(int i=0;i<n;i++) {
				if(array[i]%2==0) {
					array[i]=array[i]/2;
				}else {
					System.out.println(j);
					System.exit(0);
				}
			}
		}
		//System.out.println(max);



	}
	public static int sample(int n) {
		return n;
	}

}
