
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		//宣言文
		//標準入力オブジェクトを生成
		Scanner sc = new Scanner(System.in);
		//標準入力で以下の変数を初期化
		int number = sc.nextInt();
		int[] numArray = new int[number];
		for(int i = 0; i < numArray.length; ++i) {
			numArray[i] = sc.nextInt();
		}
		sc.close();
		//カウント変数
		int countNum = 0;
		boolean flagNum = true;
		
		do {
			for(int i = 0; i < numArray.length; i++) {
				//全て偶数か判定
				if(!(numArray[i]%2 == 0)){
					flagNum = false;
					break;
				}
				//割る２する処理を流す。
				numArray[i] = numArray[i] / 2;
			}
			//全体の処理をカウント
			if(flagNum) {
				countNum++;
			}
		}while(flagNum);//全て偶数なら繰り返す
			//標準出力
			System.out.print(countNum);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		//宣言文
		//標準入力オブジェクトを生成
		Scanner sc = new Scanner(System.in);
		//標準入力で以下の変数を初期化
		int number = sc.nextInt();
		int[] numArray = new int[number];
		for(int i = 0; i < numArray.length; ++i) {
			numArray[i] = sc.nextInt();
		}
		sc.close();
		//カウント変数
		int countNum = 0;
		boolean flagNum = true;
		
		do {
			for(int i = 0; i < numArray.length; i++) {
				//全て偶数か判定
				if(!(numArray[i]%2 == 0)){
					flagNum = false;
					break;
				}
				//割る２する処理を流す。
				numArray[i] = numArray[i] / 2;
			}
			//全体の処理をカウント
			if(flagNum) {
				countNum++;
			}
		}while(flagNum);//全て偶数なら繰り返す
			//標準出力
			System.out.print(countNum);
	}
} Main public static void main(String[] args) {
		//宣言文
		//標準入力オブジェクトを生成
		Scanner sc = new Scanner(System.in);
		//標準入力で以下の変数を初期化
		int number = sc.nextInt();
		int[] numArray = new int[number];
		for(int i = 0; i < numArray.length; ++i) {
			numArray[i] = sc.nextInt();
		}
		sc.close();
		//カウント変数
		int countNum = 0;
		boolean flagNum = true;
		
		do {
			for(int i = 0; i < numArray.length; i++) {
				//全て偶数か判定
				if(!(numArray[i]%2 == 0)){
					flagNum = false;
					break;
				}
				//割る２する処理を流す。
				numArray[i] = numArray[i] / 2;
			}
			//全体の処理をカウント
			if(flagNum) {
				countNum++;
			}
		}while(flagNum);//全て偶数なら繰り返す
			//標準出力
			System.out.print(countNum);
	} main {
		//宣言文
		//標準入力オブジェクトを生成
		Scanner sc = new Scanner(System.in);
		//標準入力で以下の変数を初期化
		int number = sc.nextInt();
		int[] numArray = new int[number];
		for(int i = 0; i < numArray.length; ++i) {
			numArray[i] = sc.nextInt();
		}
		sc.close();
		//カウント変数
		int countNum = 0;
		boolean flagNum = true;
		
		do {
			for(int i = 0; i < numArray.length; i++) {
				//全て偶数か判定
				if(!(numArray[i]%2 == 0)){
					flagNum = false;
					break;
				}
				//割る２する処理を流す。
				numArray[i] = numArray[i] / 2;
			}
			//全体の処理をカウント
			if(flagNum) {
				countNum++;
			}
		}while(flagNum);//全て偶数なら繰り返す
			//標準出力
			System.out.print(countNum);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int number = sc.nextInt(); number sc.nextInt() sc.nextInt sc int[] numArray = new int[number]; numArray new int[number] number for(int i = 0; i < numArray.length; ++i) {
			numArray[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < numArray.length i numArray.length numArray numArray.length ++i ++i i {
			numArray[i] = sc.nextInt();
		} {
			numArray[i] = sc.nextInt();
		} numArray[i] = sc.nextInt() numArray[i] numArray i sc.nextInt() sc.nextInt sc sc.close() sc.close sc int countNum = 0; countNum 0 boolean flagNum = true; flagNum true do {
			for(int i = 0; i < numArray.length; i++) {
				//全て偶数か判定
				if(!(numArray[i]%2 == 0)){
					flagNum = false;
					break;
				}
				//割る２する処理を流す。
				numArray[i] = numArray[i] / 2;
			}
			//全体の処理をカウント
			if(flagNum) {
				countNum++;
			}
		}while(flagNum);//全て偶数なら繰り返す flagNum {
			for(int i = 0; i < numArray.length; i++) {
				//全て偶数か判定
				if(!(numArray[i]%2 == 0)){
					flagNum = false;
					break;
				}
				//割る２する処理を流す。
				numArray[i] = numArray[i] / 2;
			}
			//全体の処理をカウント
			if(flagNum) {
				countNum++;
			}
		} for(int i = 0; i < numArray.length; i++) {
				//全て偶数か判定
				if(!(numArray[i]%2 == 0)){
					flagNum = false;
					break;
				}
				//割る２する処理を流す。
				numArray[i] = numArray[i] / 2;
			} int i = 0; int i = 0; i 0 i < numArray.length i numArray.length numArray numArray.length i++ i++ i {
				//全て偶数か判定
				if(!(numArray[i]%2 == 0)){
					flagNum = false;
					break;
				}
				//割る２する処理を流す。
				numArray[i] = numArray[i] / 2;
			} {
				//全て偶数か判定
				if(!(numArray[i]%2 == 0)){
					flagNum = false;
					break;
				}
				//割る２する処理を流す。
				numArray[i] = numArray[i] / 2;
			} if(!(numArray[i]%2 == 0)){
					flagNum = false;
					break;
				} !(numArray[i]%2 == 0) (numArray[i]%2 == 0) numArray[i]%2 numArray[i] numArray i 2 0 {
					flagNum = false;
					break;
				} flagNum = false flagNum false break; numArray[i] = numArray[i] / 2 numArray[i] numArray i numArray[i] / 2 numArray[i] numArray i 2 if(flagNum) {
				countNum++;
			} flagNum {
				countNum++;
			} countNum++ countNum System.out.print(countNum) System.out.print System.out System System.out countNum String[] args args public class Main {
	public static void main(String[] args) {
		//宣言文
		//標準入力オブジェクトを生成
		Scanner sc = new Scanner(System.in);
		//標準入力で以下の変数を初期化
		int number = sc.nextInt();
		int[] numArray = new int[number];
		for(int i = 0; i < numArray.length; ++i) {
			numArray[i] = sc.nextInt();
		}
		sc.close();
		//カウント変数
		int countNum = 0;
		boolean flagNum = true;
		
		do {
			for(int i = 0; i < numArray.length; i++) {
				//全て偶数か判定
				if(!(numArray[i]%2 == 0)){
					flagNum = false;
					break;
				}
				//割る２する処理を流す。
				numArray[i] = numArray[i] / 2;
			}
			//全体の処理をカウント
			if(flagNum) {
				countNum++;
			}
		}while(flagNum);//全て偶数なら繰り返す
			//標準出力
			System.out.print(countNum);
	}
} public class Main {
	public static void main(String[] args) {
		//宣言文
		//標準入力オブジェクトを生成
		Scanner sc = new Scanner(System.in);
		//標準入力で以下の変数を初期化
		int number = sc.nextInt();
		int[] numArray = new int[number];
		for(int i = 0; i < numArray.length; ++i) {
			numArray[i] = sc.nextInt();
		}
		sc.close();
		//カウント変数
		int countNum = 0;
		boolean flagNum = true;
		
		do {
			for(int i = 0; i < numArray.length; i++) {
				//全て偶数か判定
				if(!(numArray[i]%2 == 0)){
					flagNum = false;
					break;
				}
				//割る２する処理を流す。
				numArray[i] = numArray[i] / 2;
			}
			//全体の処理をカウント
			if(flagNum) {
				countNum++;
			}
		}while(flagNum);//全て偶数なら繰り返す
			//標準出力
			System.out.print(countNum);
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		//宣言文
		//標準入力オブジェクトを生成
		Scanner sc = new Scanner(System.in);
		//標準入力で以下の変数を初期化
		int number = sc.nextInt();
		int[] numArray = new int[number];
		for(int i = 0; i < numArray.length; ++i) {
			numArray[i] = sc.nextInt();
		}
		sc.close();
		//カウント変数
		int countNum = 0;
		boolean flagNum = true;
		
		do {
			for(int i = 0; i < numArray.length; i++) {
				//全て偶数か判定
				if(!(numArray[i]%2 == 0)){
					flagNum = false;
					break;
				}
				//割る２する処理を流す。
				numArray[i] = numArray[i] / 2;
			}
			//全体の処理をカウント
			if(flagNum) {
				countNum++;
			}
		}while(flagNum);//全て偶数なら繰り返す
			//標準出力
			System.out.print(countNum);
	}
}
