import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

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

		Scanner sc = new Scanner(System.in);

		int a = Integer.parseInt(sc.next());
		List<Integer> numList = new ArrayList();

		numList.add(Integer.parseInt(sc.next()));
		int count = 0;
		while(true) {
			count++;
			if(count == a) break;
			numList.add(Integer.parseInt(sc.next()));
		}
		int count2 = 0;
		LABEL1: while(true) {
			for(int i = 0; i <= numList.size() - 1; i++) {
				if(numList.get(i) % 2 == 0) {
					numList.set(i, numList.get(i)/2);
				} else {
					break LABEL1;
				}
			}
			count2++;
		}
		System.out.println(count2);


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

		Scanner sc = new Scanner(System.in);

		int a = Integer.parseInt(sc.next());
		List<Integer> numList = new ArrayList();

		numList.add(Integer.parseInt(sc.next()));
		int count = 0;
		while(true) {
			count++;
			if(count == a) break;
			numList.add(Integer.parseInt(sc.next()));
		}
		int count2 = 0;
		LABEL1: while(true) {
			for(int i = 0; i <= numList.size() - 1; i++) {
				if(numList.get(i) % 2 == 0) {
					numList.set(i, numList.get(i)/2);
				} else {
					break LABEL1;
				}
			}
			count2++;
		}
		System.out.println(count2);


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

		Scanner sc = new Scanner(System.in);

		int a = Integer.parseInt(sc.next());
		List<Integer> numList = new ArrayList();

		numList.add(Integer.parseInt(sc.next()));
		int count = 0;
		while(true) {
			count++;
			if(count == a) break;
			numList.add(Integer.parseInt(sc.next()));
		}
		int count2 = 0;
		LABEL1: while(true) {
			for(int i = 0; i <= numList.size() - 1; i++) {
				if(numList.get(i) % 2 == 0) {
					numList.set(i, numList.get(i)/2);
				} else {
					break LABEL1;
				}
			}
			count2++;
		}
		System.out.println(count2);


	} main {

		Scanner sc = new Scanner(System.in);

		int a = Integer.parseInt(sc.next());
		List<Integer> numList = new ArrayList();

		numList.add(Integer.parseInt(sc.next()));
		int count = 0;
		while(true) {
			count++;
			if(count == a) break;
			numList.add(Integer.parseInt(sc.next()));
		}
		int count2 = 0;
		LABEL1: while(true) {
			for(int i = 0; i <= numList.size() - 1; i++) {
				if(numList.get(i) % 2 == 0) {
					numList.set(i, numList.get(i)/2);
				} else {
					break LABEL1;
				}
			}
			count2++;
		}
		System.out.println(count2);


	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc List<Integer> numList = new ArrayList(); numList new ArrayList() numList.add(Integer.parseInt(sc.next())) numList.add numList Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int count = 0; count 0 while(true) {
			count++;
			if(count == a) break;
			numList.add(Integer.parseInt(sc.next()));
		} true {
			count++;
			if(count == a) break;
			numList.add(Integer.parseInt(sc.next()));
		} count++ count if(count == a) break; count == a count a break; numList.add(Integer.parseInt(sc.next())) numList.add numList Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int count2 = 0; count2 0 System.out.println(count2) System.out.println System.out System System.out count2 String[] args args
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

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

		Scanner sc = new Scanner(System.in);

		int a = Integer.parseInt(sc.next());
		List<Integer> numList = new ArrayList();

		numList.add(Integer.parseInt(sc.next()));
		int count = 0;
		while(true) {
			count++;
			if(count == a) break;
			numList.add(Integer.parseInt(sc.next()));
		}
		int count2 = 0;
		LABEL1: while(true) {
			for(int i = 0; i <= numList.size() - 1; i++) {
				if(numList.get(i) % 2 == 0) {
					numList.set(i, numList.get(i)/2);
				} else {
					break LABEL1;
				}
			}
			count2++;
		}
		System.out.println(count2);


	}
}
