
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;

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

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] list = new int[n];
		for (int i = 0; i < list.length; i++) {
			list[i] = scan.nextInt();
		}
		
		int count = 0;
		outside: do {
			for (int i = 0; i < list.length; i++) {
				if (list[i] % 2 == 1) {
					break outside;
				}
				list[i] /= 2;
			}
			count++;
		} while(true);
		
		System.out.println(count);
	}
} import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] list = new int[n];
		for (int i = 0; i < list.length; i++) {
			list[i] = scan.nextInt();
		}
		
		int count = 0;
		outside: do {
			for (int i = 0; i < list.length; i++) {
				if (list[i] % 2 == 1) {
					break outside;
				}
				list[i] /= 2;
			}
			count++;
		} while(true);
		
		System.out.println(count);
	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] list = new int[n];
		for (int i = 0; i < list.length; i++) {
			list[i] = scan.nextInt();
		}
		
		int count = 0;
		outside: do {
			for (int i = 0; i < list.length; i++) {
				if (list[i] % 2 == 1) {
					break outside;
				}
				list[i] /= 2;
			}
			count++;
		} while(true);
		
		System.out.println(count);
	} main {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] list = new int[n];
		for (int i = 0; i < list.length; i++) {
			list[i] = scan.nextInt();
		}
		
		int count = 0;
		outside: do {
			for (int i = 0; i < list.length; i++) {
				if (list[i] % 2 == 1) {
					break outside;
				}
				list[i] /= 2;
			}
			count++;
		} while(true);
		
		System.out.println(count);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] list = new int[n]; list new int[n] n for (int i = 0; i < list.length; i++) {
			list[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < list.length i list.length list list.length i++ i++ i {
			list[i] = scan.nextInt();
		} {
			list[i] = scan.nextInt();
		} list[i] = scan.nextInt() list[i] list i scan.nextInt() scan.nextInt scan int count = 0; count 0 System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] list = new int[n];
		for (int i = 0; i < list.length; i++) {
			list[i] = scan.nextInt();
		}
		
		int count = 0;
		outside: do {
			for (int i = 0; i < list.length; i++) {
				if (list[i] % 2 == 1) {
					break outside;
				}
				list[i] /= 2;
			}
			count++;
		} while(true);
		
		System.out.println(count);
	}
} public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] list = new int[n];
		for (int i = 0; i < list.length; i++) {
			list[i] = scan.nextInt();
		}
		
		int count = 0;
		outside: do {
			for (int i = 0; i < list.length; i++) {
				if (list[i] % 2 == 1) {
					break outside;
				}
				list[i] /= 2;
			}
			count++;
		} while(true);
		
		System.out.println(count);
	}
} Main

import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;

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

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] list = new int[n];
		for (int i = 0; i < list.length; i++) {
			list[i] = scan.nextInt();
		}
		
		int count = 0;
		outside: do {
			for (int i = 0; i < list.length; i++) {
				if (list[i] % 2 == 1) {
					break outside;
				}
				list[i] /= 2;
			}
			count++;
		} while(true);
		
		System.out.println(count);
	}
}
