import java.util.Scanner;

public class Main {
	public static void main (String[] arg) {
		Scanner scan = new Scanner(System.in);
		int ope_cnt = 0;
		boolean break_flag = false;
		
		int num_number = Integer.parseInt(scan.nextLine());
		String[] input = scan.nextLine().split(" ");
		int[] input_int = new int[num_number];
		
		for(int i = 0; i < num_number; i++) {
			input_int[i] = Integer.parseInt(input[i]);
		}
		
		int[] output_int = input_int; 
		while (true) {
			for (int i = 0; i < num_number; i++ ) {
				if (output_int[i] % 2 == 0) {
					output_int[i] /= 2; 
				} else {
					break_flag = true;
					break;
				}
			}
			if (break_flag == true) {break;}
			ope_cnt += 1;
		}
		
		System.out.println(ope_cnt);
		scan.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main (String[] arg) {
		Scanner scan = new Scanner(System.in);
		int ope_cnt = 0;
		boolean break_flag = false;
		
		int num_number = Integer.parseInt(scan.nextLine());
		String[] input = scan.nextLine().split(" ");
		int[] input_int = new int[num_number];
		
		for(int i = 0; i < num_number; i++) {
			input_int[i] = Integer.parseInt(input[i]);
		}
		
		int[] output_int = input_int; 
		while (true) {
			for (int i = 0; i < num_number; i++ ) {
				if (output_int[i] % 2 == 0) {
					output_int[i] /= 2; 
				} else {
					break_flag = true;
					break;
				}
			}
			if (break_flag == true) {break;}
			ope_cnt += 1;
		}
		
		System.out.println(ope_cnt);
		scan.close();
	}
} Main public static void main (String[] arg) {
		Scanner scan = new Scanner(System.in);
		int ope_cnt = 0;
		boolean break_flag = false;
		
		int num_number = Integer.parseInt(scan.nextLine());
		String[] input = scan.nextLine().split(" ");
		int[] input_int = new int[num_number];
		
		for(int i = 0; i < num_number; i++) {
			input_int[i] = Integer.parseInt(input[i]);
		}
		
		int[] output_int = input_int; 
		while (true) {
			for (int i = 0; i < num_number; i++ ) {
				if (output_int[i] % 2 == 0) {
					output_int[i] /= 2; 
				} else {
					break_flag = true;
					break;
				}
			}
			if (break_flag == true) {break;}
			ope_cnt += 1;
		}
		
		System.out.println(ope_cnt);
		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);
		int ope_cnt = 0;
		boolean break_flag = false;
		
		int num_number = Integer.parseInt(scan.nextLine());
		String[] input = scan.nextLine().split(" ");
		int[] input_int = new int[num_number];
		
		for(int i = 0; i < num_number; i++) {
			input_int[i] = Integer.parseInt(input[i]);
		}
		
		int[] output_int = input_int; 
		while (true) {
			for (int i = 0; i < num_number; i++ ) {
				if (output_int[i] % 2 == 0) {
					output_int[i] /= 2; 
				} else {
					break_flag = true;
					break;
				}
			}
			if (break_flag == true) {break;}
			ope_cnt += 1;
		}
		
		System.out.println(ope_cnt);
		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int ope_cnt = 0; ope_cnt 0 boolean break_flag = false; break_flag false int num_number = Integer.parseInt(scan.nextLine()); num_number Integer.parseInt(scan.nextLine()) Integer.parseInt Integer scan.nextLine() scan.nextLine scan String[] input = scan.nextLine().split(" "); input scan.nextLine().split(" ") scan.nextLine().split scan.nextLine() scan.nextLine scan " " int[] input_int = new int[num_number]; input_int new int[num_number] num_number for(int i = 0; i < num_number; i++) {
			input_int[i] = Integer.parseInt(input[i]);
		} int i = 0; int i = 0; i 0 i < num_number i num_number i++ i++ i {
			input_int[i] = Integer.parseInt(input[i]);
		} {
			input_int[i] = Integer.parseInt(input[i]);
		} input_int[i] = Integer.parseInt(input[i]) input_int[i] input_int i Integer.parseInt(input[i]) Integer.parseInt Integer input[i] input i int[] output_int = input_int; output_int input_int while (true) {
			for (int i = 0; i < num_number; i++ ) {
				if (output_int[i] % 2 == 0) {
					output_int[i] /= 2; 
				} else {
					break_flag = true;
					break;
				}
			}
			if (break_flag == true) {break;}
			ope_cnt += 1;
		} true {
			for (int i = 0; i < num_number; i++ ) {
				if (output_int[i] % 2 == 0) {
					output_int[i] /= 2; 
				} else {
					break_flag = true;
					break;
				}
			}
			if (break_flag == true) {break;}
			ope_cnt += 1;
		} for (int i = 0; i < num_number; i++ ) {
				if (output_int[i] % 2 == 0) {
					output_int[i] /= 2; 
				} else {
					break_flag = true;
					break;
				}
			} int i = 0; int i = 0; i 0 i < num_number i num_number i++ i++ i {
				if (output_int[i] % 2 == 0) {
					output_int[i] /= 2; 
				} else {
					break_flag = true;
					break;
				}
			} {
				if (output_int[i] % 2 == 0) {
					output_int[i] /= 2; 
				} else {
					break_flag = true;
					break;
				}
			} if (output_int[i] % 2 == 0) {
					output_int[i] /= 2; 
				} else {
					break_flag = true;
					break;
				} output_int[i] % 2 == 0 output_int[i] % 2 output_int[i] output_int i 2 0 {
					output_int[i] /= 2; 
				} output_int[i] /= 2 output_int[i] output_int i 2 {
					break_flag = true;
					break;
				} break_flag = true break_flag true break; if (break_flag == true) {break;} break_flag == true break_flag true {break;} break; ope_cnt += 1 ope_cnt 1 System.out.println(ope_cnt) System.out.println System.out System System.out ope_cnt scan.close() scan.close scan String[] arg arg public class Main {
	public static void main (String[] arg) {
		Scanner scan = new Scanner(System.in);
		int ope_cnt = 0;
		boolean break_flag = false;
		
		int num_number = Integer.parseInt(scan.nextLine());
		String[] input = scan.nextLine().split(" ");
		int[] input_int = new int[num_number];
		
		for(int i = 0; i < num_number; i++) {
			input_int[i] = Integer.parseInt(input[i]);
		}
		
		int[] output_int = input_int; 
		while (true) {
			for (int i = 0; i < num_number; i++ ) {
				if (output_int[i] % 2 == 0) {
					output_int[i] /= 2; 
				} else {
					break_flag = true;
					break;
				}
			}
			if (break_flag == true) {break;}
			ope_cnt += 1;
		}
		
		System.out.println(ope_cnt);
		scan.close();
	}
} public class Main {
	public static void main (String[] arg) {
		Scanner scan = new Scanner(System.in);
		int ope_cnt = 0;
		boolean break_flag = false;
		
		int num_number = Integer.parseInt(scan.nextLine());
		String[] input = scan.nextLine().split(" ");
		int[] input_int = new int[num_number];
		
		for(int i = 0; i < num_number; i++) {
			input_int[i] = Integer.parseInt(input[i]);
		}
		
		int[] output_int = input_int; 
		while (true) {
			for (int i = 0; i < num_number; i++ ) {
				if (output_int[i] % 2 == 0) {
					output_int[i] /= 2; 
				} else {
					break_flag = true;
					break;
				}
			}
			if (break_flag == true) {break;}
			ope_cnt += 1;
		}
		
		System.out.println(ope_cnt);
		scan.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main (String[] arg) {
		Scanner scan = new Scanner(System.in);
		int ope_cnt = 0;
		boolean break_flag = false;
		
		int num_number = Integer.parseInt(scan.nextLine());
		String[] input = scan.nextLine().split(" ");
		int[] input_int = new int[num_number];
		
		for(int i = 0; i < num_number; i++) {
			input_int[i] = Integer.parseInt(input[i]);
		}
		
		int[] output_int = input_int; 
		while (true) {
			for (int i = 0; i < num_number; i++ ) {
				if (output_int[i] % 2 == 0) {
					output_int[i] /= 2; 
				} else {
					break_flag = true;
					break;
				}
			}
			if (break_flag == true) {break;}
			ope_cnt += 1;
		}
		
		System.out.println(ope_cnt);
		scan.close();
	}
}
