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

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		List<Integer> list = new ArrayList<>();

		for (int i = 0; i < n; i++) {
			int buf = sc.nextInt();
			list.add(buf);
		}

		boolean boo = true;
		int result = 0;

		while(boo) {
			for (int cnt = 0; cnt < list.size(); cnt++) {
				if (list.get(cnt) % 2 != 0) {
					boo = false;
					break;
				}
				list.set(cnt, list.get(cnt)/2);
			}
			if(boo) {
				result += 1;
			}
		}
		System.out.println(result);
	}
} import java.util.ArrayList; ArrayList java.util import java.util.List; List 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 = sc.nextInt();

		List<Integer> list = new ArrayList<>();

		for (int i = 0; i < n; i++) {
			int buf = sc.nextInt();
			list.add(buf);
		}

		boolean boo = true;
		int result = 0;

		while(boo) {
			for (int cnt = 0; cnt < list.size(); cnt++) {
				if (list.get(cnt) % 2 != 0) {
					boo = false;
					break;
				}
				list.set(cnt, list.get(cnt)/2);
			}
			if(boo) {
				result += 1;
			}
		}
		System.out.println(result);
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		List<Integer> list = new ArrayList<>();

		for (int i = 0; i < n; i++) {
			int buf = sc.nextInt();
			list.add(buf);
		}

		boolean boo = true;
		int result = 0;

		while(boo) {
			for (int cnt = 0; cnt < list.size(); cnt++) {
				if (list.get(cnt) % 2 != 0) {
					boo = false;
					break;
				}
				list.set(cnt, list.get(cnt)/2);
			}
			if(boo) {
				result += 1;
			}
		}
		System.out.println(result);
	} main {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		List<Integer> list = new ArrayList<>();

		for (int i = 0; i < n; i++) {
			int buf = sc.nextInt();
			list.add(buf);
		}

		boolean boo = true;
		int result = 0;

		while(boo) {
			for (int cnt = 0; cnt < list.size(); cnt++) {
				if (list.get(cnt) % 2 != 0) {
					boo = false;
					break;
				}
				list.set(cnt, list.get(cnt)/2);
			}
			if(boo) {
				result += 1;
			}
		}
		System.out.println(result);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<Integer> list = new ArrayList<>(); list new ArrayList<>() for (int i = 0; i < n; i++) {
			int buf = sc.nextInt();
			list.add(buf);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int buf = sc.nextInt();
			list.add(buf);
		} {
			int buf = sc.nextInt();
			list.add(buf);
		} int buf = sc.nextInt(); buf sc.nextInt() sc.nextInt sc list.add(buf) list.add list buf boolean boo = true; boo true int result = 0; result 0 while(boo) {
			for (int cnt = 0; cnt < list.size(); cnt++) {
				if (list.get(cnt) % 2 != 0) {
					boo = false;
					break;
				}
				list.set(cnt, list.get(cnt)/2);
			}
			if(boo) {
				result += 1;
			}
		} boo {
			for (int cnt = 0; cnt < list.size(); cnt++) {
				if (list.get(cnt) % 2 != 0) {
					boo = false;
					break;
				}
				list.set(cnt, list.get(cnt)/2);
			}
			if(boo) {
				result += 1;
			}
		} for (int cnt = 0; cnt < list.size(); cnt++) {
				if (list.get(cnt) % 2 != 0) {
					boo = false;
					break;
				}
				list.set(cnt, list.get(cnt)/2);
			} int cnt = 0; int cnt = 0; cnt 0 cnt < list.size() cnt list.size() list.size list cnt++ cnt++ cnt {
				if (list.get(cnt) % 2 != 0) {
					boo = false;
					break;
				}
				list.set(cnt, list.get(cnt)/2);
			} {
				if (list.get(cnt) % 2 != 0) {
					boo = false;
					break;
				}
				list.set(cnt, list.get(cnt)/2);
			} if (list.get(cnt) % 2 != 0) {
					boo = false;
					break;
				} list.get(cnt) % 2 != 0 list.get(cnt) % 2 list.get(cnt) list.get list cnt 2 0 {
					boo = false;
					break;
				} boo = false boo false break; list.set(cnt, list.get(cnt)/2) list.set list cnt list.get(cnt)/2 list.get(cnt) list.get list cnt 2 if(boo) {
				result += 1;
			} boo {
				result += 1;
			} result += 1 result 1 System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		List<Integer> list = new ArrayList<>();

		for (int i = 0; i < n; i++) {
			int buf = sc.nextInt();
			list.add(buf);
		}

		boolean boo = true;
		int result = 0;

		while(boo) {
			for (int cnt = 0; cnt < list.size(); cnt++) {
				if (list.get(cnt) % 2 != 0) {
					boo = false;
					break;
				}
				list.set(cnt, list.get(cnt)/2);
			}
			if(boo) {
				result += 1;
			}
		}
		System.out.println(result);
	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		List<Integer> list = new ArrayList<>();

		for (int i = 0; i < n; i++) {
			int buf = sc.nextInt();
			list.add(buf);
		}

		boolean boo = true;
		int result = 0;

		while(boo) {
			for (int cnt = 0; cnt < list.size(); cnt++) {
				if (list.get(cnt) % 2 != 0) {
					boo = false;
					break;
				}
				list.set(cnt, list.get(cnt)/2);
			}
			if(boo) {
				result += 1;
			}
		}
		System.out.println(result);
	}
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		List<Integer> list = new ArrayList<>();

		for (int i = 0; i < n; i++) {
			int buf = sc.nextInt();
			list.add(buf);
		}

		boolean boo = true;
		int result = 0;

		while(boo) {
			for (int cnt = 0; cnt < list.size(); cnt++) {
				if (list.get(cnt) % 2 != 0) {
					boo = false;
					break;
				}
				list.set(cnt, list.get(cnt)/2);
			}
			if(boo) {
				result += 1;
			}
		}
		System.out.println(result);
	}
}