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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int answer = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			int count = 0;
			int tmp = list.get(i);
			while(tmp % 2 == 0) {
				tmp = tmp / 2;
				count++;
			}
			if(answer >= count) {
				answer = count;
			}
		}
		System.out.println(answer);
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int answer = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			int count = 0;
			int tmp = list.get(i);
			while(tmp % 2 == 0) {
				tmp = tmp / 2;
				count++;
			}
			if(answer >= count) {
				answer = count;
			}
		}
		System.out.println(answer);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int answer = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			int count = 0;
			int tmp = list.get(i);
			while(tmp % 2 == 0) {
				tmp = tmp / 2;
				count++;
			}
			if(answer >= count) {
				answer = count;
			}
		}
		System.out.println(answer);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int answer = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			int count = 0;
			int tmp = list.get(i);
			while(tmp % 2 == 0) {
				tmp = tmp / 2;
				count++;
			}
			if(answer >= count) {
				answer = count;
			}
		}
		System.out.println(answer);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc ArrayList<Integer> list = new ArrayList<>(); list new ArrayList<>() for(int i = 0; i < N; i++) {
			list.add(Integer.parseInt(sc.next()));
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			list.add(Integer.parseInt(sc.next()));
		} {
			list.add(Integer.parseInt(sc.next()));
		} list.add(Integer.parseInt(sc.next())) list.add list Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc sc.close() sc.close sc int answer = Integer.MAX_VALUE; answer Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i = 0; i < N; i++) {
			int count = 0;
			int tmp = list.get(i);
			while(tmp % 2 == 0) {
				tmp = tmp / 2;
				count++;
			}
			if(answer >= count) {
				answer = count;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int count = 0;
			int tmp = list.get(i);
			while(tmp % 2 == 0) {
				tmp = tmp / 2;
				count++;
			}
			if(answer >= count) {
				answer = count;
			}
		} {
			int count = 0;
			int tmp = list.get(i);
			while(tmp % 2 == 0) {
				tmp = tmp / 2;
				count++;
			}
			if(answer >= count) {
				answer = count;
			}
		} int count = 0; count 0 int tmp = list.get(i); tmp list.get(i) list.get list i while(tmp % 2 == 0) {
				tmp = tmp / 2;
				count++;
			} tmp % 2 == 0 tmp % 2 tmp 2 0 {
				tmp = tmp / 2;
				count++;
			} tmp = tmp / 2 tmp tmp / 2 tmp 2 count++ count if(answer >= count) {
				answer = count;
			} answer >= count answer count {
				answer = count;
			} answer = count answer count System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int answer = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			int count = 0;
			int tmp = list.get(i);
			while(tmp % 2 == 0) {
				tmp = tmp / 2;
				count++;
			}
			if(answer >= count) {
				answer = count;
			}
		}
		System.out.println(answer);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int answer = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			int count = 0;
			int tmp = list.get(i);
			while(tmp % 2 == 0) {
				tmp = tmp / 2;
				count++;
			}
			if(answer >= count) {
				answer = count;
			}
		}
		System.out.println(answer);
	}
} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int answer = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			int count = 0;
			int tmp = list.get(i);
			while(tmp % 2 == 0) {
				tmp = tmp / 2;
				count++;
			}
			if(answer >= count) {
				answer = count;
			}
		}
		System.out.println(answer);
	}
}