import java.util.Scanner;

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

		Scanner sc =new Scanner(System.in);
		int n = sc.nextInt();
		int numbers[] =new int[n];
		for (int i=0 ; i < n; i++) {
			numbers[i] =sc.nextInt();
		}
		sc.close();

		int ans = 0;
		boolean flag=true;

		while (flag){
			for(int i=0 ; i<n ;i++){
				if(numbers[i]%2==1){
					flag = false;
					break;
				} else {
					numbers[i] = numbers[i]/2;
				}
			}
			if (flag) {
				ans++;
			}
		}
		System.out.println(ans);


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

		Scanner sc =new Scanner(System.in);
		int n = sc.nextInt();
		int numbers[] =new int[n];
		for (int i=0 ; i < n; i++) {
			numbers[i] =sc.nextInt();
		}
		sc.close();

		int ans = 0;
		boolean flag=true;

		while (flag){
			for(int i=0 ; i<n ;i++){
				if(numbers[i]%2==1){
					flag = false;
					break;
				} else {
					numbers[i] = numbers[i]/2;
				}
			}
			if (flag) {
				ans++;
			}
		}
		System.out.println(ans);


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

		Scanner sc =new Scanner(System.in);
		int n = sc.nextInt();
		int numbers[] =new int[n];
		for (int i=0 ; i < n; i++) {
			numbers[i] =sc.nextInt();
		}
		sc.close();

		int ans = 0;
		boolean flag=true;

		while (flag){
			for(int i=0 ; i<n ;i++){
				if(numbers[i]%2==1){
					flag = false;
					break;
				} else {
					numbers[i] = numbers[i]/2;
				}
			}
			if (flag) {
				ans++;
			}
		}
		System.out.println(ans);


	} main {

		Scanner sc =new Scanner(System.in);
		int n = sc.nextInt();
		int numbers[] =new int[n];
		for (int i=0 ; i < n; i++) {
			numbers[i] =sc.nextInt();
		}
		sc.close();

		int ans = 0;
		boolean flag=true;

		while (flag){
			for(int i=0 ; i<n ;i++){
				if(numbers[i]%2==1){
					flag = false;
					break;
				} else {
					numbers[i] = numbers[i]/2;
				}
			}
			if (flag) {
				ans++;
			}
		}
		System.out.println(ans);


	} Scanner sc =new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int numbers[] =new int[n]; numbers new int[n] n for (int i=0 ; i < n; i++) {
			numbers[i] =sc.nextInt();
		} int i=0 ; int i=0 ; i 0 i < n i n i++ i++ i {
			numbers[i] =sc.nextInt();
		} {
			numbers[i] =sc.nextInt();
		} numbers[i] =sc.nextInt() numbers[i] numbers i sc.nextInt() sc.nextInt sc sc.close() sc.close sc int ans = 0; ans 0 boolean flag=true; flag true while (flag){
			for(int i=0 ; i<n ;i++){
				if(numbers[i]%2==1){
					flag = false;
					break;
				} else {
					numbers[i] = numbers[i]/2;
				}
			}
			if (flag) {
				ans++;
			}
		} flag {
			for(int i=0 ; i<n ;i++){
				if(numbers[i]%2==1){
					flag = false;
					break;
				} else {
					numbers[i] = numbers[i]/2;
				}
			}
			if (flag) {
				ans++;
			}
		} for(int i=0 ; i<n ;i++){
				if(numbers[i]%2==1){
					flag = false;
					break;
				} else {
					numbers[i] = numbers[i]/2;
				}
			} int i=0 ; int i=0 ; i 0 i<n i n i++ i++ i {
				if(numbers[i]%2==1){
					flag = false;
					break;
				} else {
					numbers[i] = numbers[i]/2;
				}
			} {
				if(numbers[i]%2==1){
					flag = false;
					break;
				} else {
					numbers[i] = numbers[i]/2;
				}
			} if(numbers[i]%2==1){
					flag = false;
					break;
				} else {
					numbers[i] = numbers[i]/2;
				} numbers[i]%2==1 numbers[i]%2 numbers[i] numbers i 2 1 {
					flag = false;
					break;
				} flag = false flag false break; {
					numbers[i] = numbers[i]/2;
				} numbers[i] = numbers[i]/2 numbers[i] numbers i numbers[i]/2 numbers[i] numbers i 2 if (flag) {
				ans++;
			} flag {
				ans++;
			} ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {

		Scanner sc =new Scanner(System.in);
		int n = sc.nextInt();
		int numbers[] =new int[n];
		for (int i=0 ; i < n; i++) {
			numbers[i] =sc.nextInt();
		}
		sc.close();

		int ans = 0;
		boolean flag=true;

		while (flag){
			for(int i=0 ; i<n ;i++){
				if(numbers[i]%2==1){
					flag = false;
					break;
				} else {
					numbers[i] = numbers[i]/2;
				}
			}
			if (flag) {
				ans++;
			}
		}
		System.out.println(ans);


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

		Scanner sc =new Scanner(System.in);
		int n = sc.nextInt();
		int numbers[] =new int[n];
		for (int i=0 ; i < n; i++) {
			numbers[i] =sc.nextInt();
		}
		sc.close();

		int ans = 0;
		boolean flag=true;

		while (flag){
			for(int i=0 ; i<n ;i++){
				if(numbers[i]%2==1){
					flag = false;
					break;
				} else {
					numbers[i] = numbers[i]/2;
				}
			}
			if (flag) {
				ans++;
			}
		}
		System.out.println(ans);


	}
} Main
import java.util.Scanner;

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

		Scanner sc =new Scanner(System.in);
		int n = sc.nextInt();
		int numbers[] =new int[n];
		for (int i=0 ; i < n; i++) {
			numbers[i] =sc.nextInt();
		}
		sc.close();

		int ans = 0;
		boolean flag=true;

		while (flag){
			for(int i=0 ; i<n ;i++){
				if(numbers[i]%2==1){
					flag = false;
					break;
				} else {
					numbers[i] = numbers[i]/2;
				}
			}
			if (flag) {
				ans++;
			}
		}
		System.out.println(ans);


	}
}
