import java.util.*;

public class Main{
	public static void main(String[] args){
		Integer count = 0;
		int flag = 0;
		Scanner sc = new Scanner(System.in);

		//入力する数
		int number = sc.nextInt();
		int blackbord[] = new int[number];

		for (int i = 0; i < number; i++){
			blackbord[i] = sc.nextInt();
			//System.out.println(blackbord[i]);
		}
		
		while(flag == 0){
			for(int i = 0; i < number; i++){
				if (blackbord[i] % 2 != 0){
					flag = 1;
					break;
				}
			blackbord[i] = blackbord[i]/2;
			
			count += 1;
			
		}
	}

	count = count / number;
	System.out.println(count);


	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
		Integer count = 0;
		int flag = 0;
		Scanner sc = new Scanner(System.in);

		//入力する数
		int number = sc.nextInt();
		int blackbord[] = new int[number];

		for (int i = 0; i < number; i++){
			blackbord[i] = sc.nextInt();
			//System.out.println(blackbord[i]);
		}
		
		while(flag == 0){
			for(int i = 0; i < number; i++){
				if (blackbord[i] % 2 != 0){
					flag = 1;
					break;
				}
			blackbord[i] = blackbord[i]/2;
			
			count += 1;
			
		}
	}

	count = count / number;
	System.out.println(count);


	}
} Main public static void main(String[] args){
		Integer count = 0;
		int flag = 0;
		Scanner sc = new Scanner(System.in);

		//入力する数
		int number = sc.nextInt();
		int blackbord[] = new int[number];

		for (int i = 0; i < number; i++){
			blackbord[i] = sc.nextInt();
			//System.out.println(blackbord[i]);
		}
		
		while(flag == 0){
			for(int i = 0; i < number; i++){
				if (blackbord[i] % 2 != 0){
					flag = 1;
					break;
				}
			blackbord[i] = blackbord[i]/2;
			
			count += 1;
			
		}
	}

	count = count / number;
	System.out.println(count);


	} main {
		Integer count = 0;
		int flag = 0;
		Scanner sc = new Scanner(System.in);

		//入力する数
		int number = sc.nextInt();
		int blackbord[] = new int[number];

		for (int i = 0; i < number; i++){
			blackbord[i] = sc.nextInt();
			//System.out.println(blackbord[i]);
		}
		
		while(flag == 0){
			for(int i = 0; i < number; i++){
				if (blackbord[i] % 2 != 0){
					flag = 1;
					break;
				}
			blackbord[i] = blackbord[i]/2;
			
			count += 1;
			
		}
	}

	count = count / number;
	System.out.println(count);


	} Integer count = 0; count 0 int flag = 0; flag 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int number = sc.nextInt(); number sc.nextInt() sc.nextInt sc int blackbord[] = new int[number]; blackbord new int[number] number for (int i = 0; i < number; i++){
			blackbord[i] = sc.nextInt();
			//System.out.println(blackbord[i]);
		} int i = 0; int i = 0; i 0 i < number i number i++ i++ i {
			blackbord[i] = sc.nextInt();
			//System.out.println(blackbord[i]);
		} {
			blackbord[i] = sc.nextInt();
			//System.out.println(blackbord[i]);
		} blackbord[i] = sc.nextInt() blackbord[i] blackbord i sc.nextInt() sc.nextInt sc while(flag == 0){
			for(int i = 0; i < number; i++){
				if (blackbord[i] % 2 != 0){
					flag = 1;
					break;
				}
			blackbord[i] = blackbord[i]/2;
			
			count += 1;
			
		}
	} flag == 0 flag 0 {
			for(int i = 0; i < number; i++){
				if (blackbord[i] % 2 != 0){
					flag = 1;
					break;
				}
			blackbord[i] = blackbord[i]/2;
			
			count += 1;
			
		}
	} for(int i = 0; i < number; i++){
				if (blackbord[i] % 2 != 0){
					flag = 1;
					break;
				}
			blackbord[i] = blackbord[i]/2;
			
			count += 1;
			
		} int i = 0; int i = 0; i 0 i < number i number i++ i++ i {
				if (blackbord[i] % 2 != 0){
					flag = 1;
					break;
				}
			blackbord[i] = blackbord[i]/2;
			
			count += 1;
			
		} {
				if (blackbord[i] % 2 != 0){
					flag = 1;
					break;
				}
			blackbord[i] = blackbord[i]/2;
			
			count += 1;
			
		} if (blackbord[i] % 2 != 0){
					flag = 1;
					break;
				} blackbord[i] % 2 != 0 blackbord[i] % 2 blackbord[i] blackbord i 2 0 {
					flag = 1;
					break;
				} flag = 1 flag 1 break; blackbord[i] = blackbord[i]/2 blackbord[i] blackbord i blackbord[i]/2 blackbord[i] blackbord i 2 count += 1 count 1 count = count / number count count / number count number System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main{
	public static void main(String[] args){
		Integer count = 0;
		int flag = 0;
		Scanner sc = new Scanner(System.in);

		//入力する数
		int number = sc.nextInt();
		int blackbord[] = new int[number];

		for (int i = 0; i < number; i++){
			blackbord[i] = sc.nextInt();
			//System.out.println(blackbord[i]);
		}
		
		while(flag == 0){
			for(int i = 0; i < number; i++){
				if (blackbord[i] % 2 != 0){
					flag = 1;
					break;
				}
			blackbord[i] = blackbord[i]/2;
			
			count += 1;
			
		}
	}

	count = count / number;
	System.out.println(count);


	}
} public class Main{
	public static void main(String[] args){
		Integer count = 0;
		int flag = 0;
		Scanner sc = new Scanner(System.in);

		//入力する数
		int number = sc.nextInt();
		int blackbord[] = new int[number];

		for (int i = 0; i < number; i++){
			blackbord[i] = sc.nextInt();
			//System.out.println(blackbord[i]);
		}
		
		while(flag == 0){
			for(int i = 0; i < number; i++){
				if (blackbord[i] % 2 != 0){
					flag = 1;
					break;
				}
			blackbord[i] = blackbord[i]/2;
			
			count += 1;
			
		}
	}

	count = count / number;
	System.out.println(count);


	}
} Main
import java.util.*;

public class Main{
	public static void main(String[] args){
		Integer count = 0;
		int flag = 0;
		Scanner sc = new Scanner(System.in);

		//入力する数
		int number = sc.nextInt();
		int blackbord[] = new int[number];

		for (int i = 0; i < number; i++){
			blackbord[i] = sc.nextInt();
			//System.out.println(blackbord[i]);
		}
		
		while(flag == 0){
			for(int i = 0; i < number; i++){
				if (blackbord[i] % 2 != 0){
					flag = 1;
					break;
				}
			blackbord[i] = blackbord[i]/2;
			
			count += 1;
			
		}
	}

	count = count / number;
	System.out.println(count);


	}
}