import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] a = new int[n];
		int i = 0;
		int j = 0;
		for(i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}
		a:for(i = 0;; i++) {
			for(j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] = a[j] / 2;
				} else {
					break a;
				}
			}
		}
		System.out.println(i);
	}
} 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[] a = new int[n];
		int i = 0;
		int j = 0;
		for(i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}
		a:for(i = 0;; i++) {
			for(j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] = a[j] / 2;
				} else {
					break a;
				}
			}
		}
		System.out.println(i);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] a = new int[n];
		int i = 0;
		int j = 0;
		for(i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}
		a:for(i = 0;; i++) {
			for(j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] = a[j] / 2;
				} else {
					break a;
				}
			}
		}
		System.out.println(i);
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] a = new int[n];
		int i = 0;
		int j = 0;
		for(i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}
		a:for(i = 0;; i++) {
			for(j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] = a[j] / 2;
				} else {
					break a;
				}
			}
		}
		System.out.println(i);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] a = new int[n]; a new int[n] n int i = 0; i 0 int j = 0; j 0 for(i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		} i = 0; i = 0 i 0 i < n i n i++ i++ i {
			a[i] = scan.nextInt();
		} {
			a[i] = scan.nextInt();
		} a[i] = scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] a = new int[n];
		int i = 0;
		int j = 0;
		for(i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}
		a:for(i = 0;; i++) {
			for(j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] = a[j] / 2;
				} else {
					break a;
				}
			}
		}
		System.out.println(i);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] a = new int[n];
		int i = 0;
		int j = 0;
		for(i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}
		a:for(i = 0;; i++) {
			for(j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] = a[j] / 2;
				} else {
					break a;
				}
			}
		}
		System.out.println(i);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] a = new int[n];
		int i = 0;
		int j = 0;
		for(i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}
		a:for(i = 0;; i++) {
			for(j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] = a[j] / 2;
				} else {
					break a;
				}
			}
		}
		System.out.println(i);
	}
}