
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		boolean bo = true;
		int cnt = 0;
		int[] arr = new int[n];
		for(int i = 0; i < n; i++) {
			int tmp = sc.nextInt();
			arr[i] = tmp;
			if(tmp % 2 != 0) bo = false;
		}
		while(bo) {
			cnt++;
			for(int i = 0; i < n; i++) {
				arr[i] /= 2;
				if(arr[i] % 2 != 0) {
					bo = false;
					break;
				}
			}
		}
		System.out.println(cnt);
	}

} 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();
		boolean bo = true;
		int cnt = 0;
		int[] arr = new int[n];
		for(int i = 0; i < n; i++) {
			int tmp = sc.nextInt();
			arr[i] = tmp;
			if(tmp % 2 != 0) bo = false;
		}
		while(bo) {
			cnt++;
			for(int i = 0; i < n; i++) {
				arr[i] /= 2;
				if(arr[i] % 2 != 0) {
					bo = false;
					break;
				}
			}
		}
		System.out.println(cnt);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		boolean bo = true;
		int cnt = 0;
		int[] arr = new int[n];
		for(int i = 0; i < n; i++) {
			int tmp = sc.nextInt();
			arr[i] = tmp;
			if(tmp % 2 != 0) bo = false;
		}
		while(bo) {
			cnt++;
			for(int i = 0; i < n; i++) {
				arr[i] /= 2;
				if(arr[i] % 2 != 0) {
					bo = false;
					break;
				}
			}
		}
		System.out.println(cnt);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		boolean bo = true;
		int cnt = 0;
		int[] arr = new int[n];
		for(int i = 0; i < n; i++) {
			int tmp = sc.nextInt();
			arr[i] = tmp;
			if(tmp % 2 != 0) bo = false;
		}
		while(bo) {
			cnt++;
			for(int i = 0; i < n; i++) {
				arr[i] /= 2;
				if(arr[i] % 2 != 0) {
					bo = false;
					break;
				}
			}
		}
		System.out.println(cnt);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc boolean bo = true; bo true int cnt = 0; cnt 0 int[] arr = new int[n]; arr new int[n] n for(int i = 0; i < n; i++) {
			int tmp = sc.nextInt();
			arr[i] = tmp;
			if(tmp % 2 != 0) bo = false;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int tmp = sc.nextInt();
			arr[i] = tmp;
			if(tmp % 2 != 0) bo = false;
		} {
			int tmp = sc.nextInt();
			arr[i] = tmp;
			if(tmp % 2 != 0) bo = false;
		} int tmp = sc.nextInt(); tmp sc.nextInt() sc.nextInt sc arr[i] = tmp arr[i] arr i tmp if(tmp % 2 != 0) bo = false; tmp % 2 != 0 tmp % 2 tmp 2 0 bo = false bo false while(bo) {
			cnt++;
			for(int i = 0; i < n; i++) {
				arr[i] /= 2;
				if(arr[i] % 2 != 0) {
					bo = false;
					break;
				}
			}
		} bo {
			cnt++;
			for(int i = 0; i < n; i++) {
				arr[i] /= 2;
				if(arr[i] % 2 != 0) {
					bo = false;
					break;
				}
			}
		} cnt++ cnt for(int i = 0; i < n; i++) {
				arr[i] /= 2;
				if(arr[i] % 2 != 0) {
					bo = false;
					break;
				}
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
				arr[i] /= 2;
				if(arr[i] % 2 != 0) {
					bo = false;
					break;
				}
			} {
				arr[i] /= 2;
				if(arr[i] % 2 != 0) {
					bo = false;
					break;
				}
			} arr[i] /= 2 arr[i] arr i 2 if(arr[i] % 2 != 0) {
					bo = false;
					break;
				} arr[i] % 2 != 0 arr[i] % 2 arr[i] arr i 2 0 {
					bo = false;
					break;
				} bo = false bo false break; System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		boolean bo = true;
		int cnt = 0;
		int[] arr = new int[n];
		for(int i = 0; i < n; i++) {
			int tmp = sc.nextInt();
			arr[i] = tmp;
			if(tmp % 2 != 0) bo = false;
		}
		while(bo) {
			cnt++;
			for(int i = 0; i < n; i++) {
				arr[i] /= 2;
				if(arr[i] % 2 != 0) {
					bo = false;
					break;
				}
			}
		}
		System.out.println(cnt);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		boolean bo = true;
		int cnt = 0;
		int[] arr = new int[n];
		for(int i = 0; i < n; i++) {
			int tmp = sc.nextInt();
			arr[i] = tmp;
			if(tmp % 2 != 0) bo = false;
		}
		while(bo) {
			cnt++;
			for(int i = 0; i < n; i++) {
				arr[i] /= 2;
				if(arr[i] % 2 != 0) {
					bo = false;
					break;
				}
			}
		}
		System.out.println(cnt);
	}

} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		boolean bo = true;
		int cnt = 0;
		int[] arr = new int[n];
		for(int i = 0; i < n; i++) {
			int tmp = sc.nextInt();
			arr[i] = tmp;
			if(tmp % 2 != 0) bo = false;
		}
		while(bo) {
			cnt++;
			for(int i = 0; i < n; i++) {
				arr[i] /= 2;
				if(arr[i] % 2 != 0) {
					bo = false;
					break;
				}
			}
		}
		System.out.println(cnt);
	}

}
