import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in); //入力

		int Integer_number = sc.nextInt();  //整数の数
		int[] number = new int[Integer_number]; //整数
		String[] kindOfNumber = new String[Integer_number]; //偶数か奇数か

		int numberofDividing = 0; //割った回数

		for(int i = 0 ;i < Integer_number;i++) { //整数を3つ入力する。
			number[i] =  sc.nextInt(); //整数入力
		}

loop: //ループを抜け出す。
		while(true) {
			for(int j = 0; j < Integer_number; j++) {

				if(number[j] % 2 == 0) {
					number[j] = number[j] / 2;
				}else {
					break loop;
				}
				if(j + 1 == Integer_number) {
					numberofDividing++;
				}
			}
		}

		System.out.println(numberofDividing);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in); //入力

		int Integer_number = sc.nextInt();  //整数の数
		int[] number = new int[Integer_number]; //整数
		String[] kindOfNumber = new String[Integer_number]; //偶数か奇数か

		int numberofDividing = 0; //割った回数

		for(int i = 0 ;i < Integer_number;i++) { //整数を3つ入力する。
			number[i] =  sc.nextInt(); //整数入力
		}

loop: //ループを抜け出す。
		while(true) {
			for(int j = 0; j < Integer_number; j++) {

				if(number[j] % 2 == 0) {
					number[j] = number[j] / 2;
				}else {
					break loop;
				}
				if(j + 1 == Integer_number) {
					numberofDividing++;
				}
			}
		}

		System.out.println(numberofDividing);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in); //入力

		int Integer_number = sc.nextInt();  //整数の数
		int[] number = new int[Integer_number]; //整数
		String[] kindOfNumber = new String[Integer_number]; //偶数か奇数か

		int numberofDividing = 0; //割った回数

		for(int i = 0 ;i < Integer_number;i++) { //整数を3つ入力する。
			number[i] =  sc.nextInt(); //整数入力
		}

loop: //ループを抜け出す。
		while(true) {
			for(int j = 0; j < Integer_number; j++) {

				if(number[j] % 2 == 0) {
					number[j] = number[j] / 2;
				}else {
					break loop;
				}
				if(j + 1 == Integer_number) {
					numberofDividing++;
				}
			}
		}

		System.out.println(numberofDividing);
	} main {
		Scanner sc = new Scanner(System.in); //入力

		int Integer_number = sc.nextInt();  //整数の数
		int[] number = new int[Integer_number]; //整数
		String[] kindOfNumber = new String[Integer_number]; //偶数か奇数か

		int numberofDividing = 0; //割った回数

		for(int i = 0 ;i < Integer_number;i++) { //整数を3つ入力する。
			number[i] =  sc.nextInt(); //整数入力
		}

loop: //ループを抜け出す。
		while(true) {
			for(int j = 0; j < Integer_number; j++) {

				if(number[j] % 2 == 0) {
					number[j] = number[j] / 2;
				}else {
					break loop;
				}
				if(j + 1 == Integer_number) {
					numberofDividing++;
				}
			}
		}

		System.out.println(numberofDividing);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int Integer_number = sc.nextInt(); Integer_number sc.nextInt() sc.nextInt sc int[] number = new int[Integer_number]; number new int[Integer_number] Integer_number String[] kindOfNumber = new String[Integer_number]; kindOfNumber new String[Integer_number] Integer_number int numberofDividing = 0; numberofDividing 0 for(int i = 0 ;i < Integer_number;i++) { //整数を3つ入力する。
			number[i] =  sc.nextInt(); //整数入力
		} int i = 0 ; int i = 0 ; i 0 i < Integer_number i Integer_number i++ i++ i { //整数を3つ入力する。
			number[i] =  sc.nextInt(); //整数入力
		} { //整数を3つ入力する。
			number[i] =  sc.nextInt(); //整数入力
		} number[i] =  sc.nextInt() number[i] number i sc.nextInt() sc.nextInt sc System.out.println(numberofDividing) System.out.println System.out System System.out numberofDividing String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in); //入力

		int Integer_number = sc.nextInt();  //整数の数
		int[] number = new int[Integer_number]; //整数
		String[] kindOfNumber = new String[Integer_number]; //偶数か奇数か

		int numberofDividing = 0; //割った回数

		for(int i = 0 ;i < Integer_number;i++) { //整数を3つ入力する。
			number[i] =  sc.nextInt(); //整数入力
		}

loop: //ループを抜け出す。
		while(true) {
			for(int j = 0; j < Integer_number; j++) {

				if(number[j] % 2 == 0) {
					number[j] = number[j] / 2;
				}else {
					break loop;
				}
				if(j + 1 == Integer_number) {
					numberofDividing++;
				}
			}
		}

		System.out.println(numberofDividing);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in); //入力

		int Integer_number = sc.nextInt();  //整数の数
		int[] number = new int[Integer_number]; //整数
		String[] kindOfNumber = new String[Integer_number]; //偶数か奇数か

		int numberofDividing = 0; //割った回数

		for(int i = 0 ;i < Integer_number;i++) { //整数を3つ入力する。
			number[i] =  sc.nextInt(); //整数入力
		}

loop: //ループを抜け出す。
		while(true) {
			for(int j = 0; j < Integer_number; j++) {

				if(number[j] % 2 == 0) {
					number[j] = number[j] / 2;
				}else {
					break loop;
				}
				if(j + 1 == Integer_number) {
					numberofDividing++;
				}
			}
		}

		System.out.println(numberofDividing);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in); //入力

		int Integer_number = sc.nextInt();  //整数の数
		int[] number = new int[Integer_number]; //整数
		String[] kindOfNumber = new String[Integer_number]; //偶数か奇数か

		int numberofDividing = 0; //割った回数

		for(int i = 0 ;i < Integer_number;i++) { //整数を3つ入力する。
			number[i] =  sc.nextInt(); //整数入力
		}

loop: //ループを抜け出す。
		while(true) {
			for(int j = 0; j < Integer_number; j++) {

				if(number[j] % 2 == 0) {
					number[j] = number[j] / 2;
				}else {
					break loop;
				}
				if(j + 1 == Integer_number) {
					numberofDividing++;
				}
			}
		}

		System.out.println(numberofDividing);
	}
}