import java.util.*;
public class Main {
	public static void main(String[]args) {

		
		Scanner sc = new Scanner(System.in);
		 
		int cnt = sc.nextInt();
		
		int[] nums = new int[cnt];
		
		for (int i = 0 ; i < cnt; i++) {
			
			int num = sc.nextInt();
			
			nums[i] = num;  
			
		}
		// even judge method
		boolean repeatFlg = true;
		int result = 0;
		while (repeatFlg) {
			for (int i = 0 ; i < cnt; i++) {
				
				int num = nums[i];
				
				if (num % 2 == 0) {
					
					nums [i] = num / 2;
				} else {
					repeatFlg = false;
					nums [i] = -1;
					break;
				}
			}
			if (repeatFlg)
				result++;
		}
					
		System.out.println(result);
	}
	
//	public static int judgeAllEven(int result,int[]nums){
//		for (int num :nums) {
//			
//			if (num == -1) {
//				result--;
//				
//				break;
//			}
//		}
//
//		return result;
//	}

}
				
				
				
			 import java.util.*; util.* java public class Main {
	public static void main(String[]args) {

		
		Scanner sc = new Scanner(System.in);
		 
		int cnt = sc.nextInt();
		
		int[] nums = new int[cnt];
		
		for (int i = 0 ; i < cnt; i++) {
			
			int num = sc.nextInt();
			
			nums[i] = num;  
			
		}
		// even judge method
		boolean repeatFlg = true;
		int result = 0;
		while (repeatFlg) {
			for (int i = 0 ; i < cnt; i++) {
				
				int num = nums[i];
				
				if (num % 2 == 0) {
					
					nums [i] = num / 2;
				} else {
					repeatFlg = false;
					nums [i] = -1;
					break;
				}
			}
			if (repeatFlg)
				result++;
		}
					
		System.out.println(result);
	}
	
//	public static int judgeAllEven(int result,int[]nums){
//		for (int num :nums) {
//			
//			if (num == -1) {
//				result--;
//				
//				break;
//			}
//		}
//
//		return result;
//	}

} Main public static void main(String[]args) {

		
		Scanner sc = new Scanner(System.in);
		 
		int cnt = sc.nextInt();
		
		int[] nums = new int[cnt];
		
		for (int i = 0 ; i < cnt; i++) {
			
			int num = sc.nextInt();
			
			nums[i] = num;  
			
		}
		// even judge method
		boolean repeatFlg = true;
		int result = 0;
		while (repeatFlg) {
			for (int i = 0 ; i < cnt; i++) {
				
				int num = nums[i];
				
				if (num % 2 == 0) {
					
					nums [i] = num / 2;
				} else {
					repeatFlg = false;
					nums [i] = -1;
					break;
				}
			}
			if (repeatFlg)
				result++;
		}
					
		System.out.println(result);
	} main {

		
		Scanner sc = new Scanner(System.in);
		 
		int cnt = sc.nextInt();
		
		int[] nums = new int[cnt];
		
		for (int i = 0 ; i < cnt; i++) {
			
			int num = sc.nextInt();
			
			nums[i] = num;  
			
		}
		// even judge method
		boolean repeatFlg = true;
		int result = 0;
		while (repeatFlg) {
			for (int i = 0 ; i < cnt; i++) {
				
				int num = nums[i];
				
				if (num % 2 == 0) {
					
					nums [i] = num / 2;
				} else {
					repeatFlg = false;
					nums [i] = -1;
					break;
				}
			}
			if (repeatFlg)
				result++;
		}
					
		System.out.println(result);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int cnt = sc.nextInt(); cnt sc.nextInt() sc.nextInt sc int[] nums = new int[cnt]; nums new int[cnt] cnt for (int i = 0 ; i < cnt; i++) {
			
			int num = sc.nextInt();
			
			nums[i] = num;  
			
		} int i = 0 ; int i = 0 ; i 0 i < cnt i cnt i++ i++ i {
			
			int num = sc.nextInt();
			
			nums[i] = num;  
			
		} {
			
			int num = sc.nextInt();
			
			nums[i] = num;  
			
		} int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc nums[i] = num nums[i] nums i num boolean repeatFlg = true; repeatFlg true int result = 0; result 0 while (repeatFlg) {
			for (int i = 0 ; i < cnt; i++) {
				
				int num = nums[i];
				
				if (num % 2 == 0) {
					
					nums [i] = num / 2;
				} else {
					repeatFlg = false;
					nums [i] = -1;
					break;
				}
			}
			if (repeatFlg)
				result++;
		} repeatFlg {
			for (int i = 0 ; i < cnt; i++) {
				
				int num = nums[i];
				
				if (num % 2 == 0) {
					
					nums [i] = num / 2;
				} else {
					repeatFlg = false;
					nums [i] = -1;
					break;
				}
			}
			if (repeatFlg)
				result++;
		} for (int i = 0 ; i < cnt; i++) {
				
				int num = nums[i];
				
				if (num % 2 == 0) {
					
					nums [i] = num / 2;
				} else {
					repeatFlg = false;
					nums [i] = -1;
					break;
				}
			} int i = 0 ; int i = 0 ; i 0 i < cnt i cnt i++ i++ i {
				
				int num = nums[i];
				
				if (num % 2 == 0) {
					
					nums [i] = num / 2;
				} else {
					repeatFlg = false;
					nums [i] = -1;
					break;
				}
			} {
				
				int num = nums[i];
				
				if (num % 2 == 0) {
					
					nums [i] = num / 2;
				} else {
					repeatFlg = false;
					nums [i] = -1;
					break;
				}
			} int num = nums[i]; num nums[i] nums i if (num % 2 == 0) {
					
					nums [i] = num / 2;
				} else {
					repeatFlg = false;
					nums [i] = -1;
					break;
				} num % 2 == 0 num % 2 num 2 0 {
					
					nums [i] = num / 2;
				} nums [i] = num / 2 nums [i] nums i num / 2 num 2 {
					repeatFlg = false;
					nums [i] = -1;
					break;
				} repeatFlg = false repeatFlg false nums [i] = -1 nums [i] nums i -1 1 break; if (repeatFlg)
				result++; repeatFlg result++ result System.out.println(result) System.out.println System.out System System.out result String[]args args public class Main {
	public static void main(String[]args) {

		
		Scanner sc = new Scanner(System.in);
		 
		int cnt = sc.nextInt();
		
		int[] nums = new int[cnt];
		
		for (int i = 0 ; i < cnt; i++) {
			
			int num = sc.nextInt();
			
			nums[i] = num;  
			
		}
		// even judge method
		boolean repeatFlg = true;
		int result = 0;
		while (repeatFlg) {
			for (int i = 0 ; i < cnt; i++) {
				
				int num = nums[i];
				
				if (num % 2 == 0) {
					
					nums [i] = num / 2;
				} else {
					repeatFlg = false;
					nums [i] = -1;
					break;
				}
			}
			if (repeatFlg)
				result++;
		}
					
		System.out.println(result);
	}
	
//	public static int judgeAllEven(int result,int[]nums){
//		for (int num :nums) {
//			
//			if (num == -1) {
//				result--;
//				
//				break;
//			}
//		}
//
//		return result;
//	}

} public class Main {
	public static void main(String[]args) {

		
		Scanner sc = new Scanner(System.in);
		 
		int cnt = sc.nextInt();
		
		int[] nums = new int[cnt];
		
		for (int i = 0 ; i < cnt; i++) {
			
			int num = sc.nextInt();
			
			nums[i] = num;  
			
		}
		// even judge method
		boolean repeatFlg = true;
		int result = 0;
		while (repeatFlg) {
			for (int i = 0 ; i < cnt; i++) {
				
				int num = nums[i];
				
				if (num % 2 == 0) {
					
					nums [i] = num / 2;
				} else {
					repeatFlg = false;
					nums [i] = -1;
					break;
				}
			}
			if (repeatFlg)
				result++;
		}
					
		System.out.println(result);
	}
	
//	public static int judgeAllEven(int result,int[]nums){
//		for (int num :nums) {
//			
//			if (num == -1) {
//				result--;
//				
//				break;
//			}
//		}
//
//		return result;
//	}

} Main
import java.util.*;
public class Main {
	public static void main(String[]args) {

		
		Scanner sc = new Scanner(System.in);
		 
		int cnt = sc.nextInt();
		
		int[] nums = new int[cnt];
		
		for (int i = 0 ; i < cnt; i++) {
			
			int num = sc.nextInt();
			
			nums[i] = num;  
			
		}
		// even judge method
		boolean repeatFlg = true;
		int result = 0;
		while (repeatFlg) {
			for (int i = 0 ; i < cnt; i++) {
				
				int num = nums[i];
				
				if (num % 2 == 0) {
					
					nums [i] = num / 2;
				} else {
					repeatFlg = false;
					nums [i] = -1;
					break;
				}
			}
			if (repeatFlg)
				result++;
		}
					
		System.out.println(result);
	}
	
//	public static int judgeAllEven(int result,int[]nums){
//		for (int num :nums) {
//			
//			if (num == -1) {
//				result--;
//				
//				break;
//			}
//		}
//
//		return result;
//	}

}
				
				
				
			