import java.util.*;
// warm-up
public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt(), i = 0, t = 0;
		int[] a = new int[N];
		boolean ok = true;
		while (N-->0) {
			a[i++] = sc.nextInt();
			ok&=((a[i-1]&1)==0);
		}
		if (ok) {
			while (true) {
				for (i=0; i<a.length; i++) {
					ok&=((a[i]&1)==0);
					if (ok) a[i] = a[i]/2;
				}
				if (!ok) break;
				t++;
			}
		}
		System.out.println(t);
		sc.close();		
	}

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

} import java.util.*; util.* java public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt(), i = 0, t = 0;
		int[] a = new int[N];
		boolean ok = true;
		while (N-->0) {
			a[i++] = sc.nextInt();
			ok&=((a[i-1]&1)==0);
		}
		if (ok) {
			while (true) {
				for (i=0; i<a.length; i++) {
					ok&=((a[i]&1)==0);
					if (ok) a[i] = a[i]/2;
				}
				if (!ok) break;
				t++;
			}
		}
		System.out.println(t);
		sc.close();		
	}

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

} Main static void solve() {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt(), i = 0, t = 0;
		int[] a = new int[N];
		boolean ok = true;
		while (N-->0) {
			a[i++] = sc.nextInt();
			ok&=((a[i-1]&1)==0);
		}
		if (ok) {
			while (true) {
				for (i=0; i<a.length; i++) {
					ok&=((a[i]&1)==0);
					if (ok) a[i] = a[i]/2;
				}
				if (!ok) break;
				t++;
			}
		}
		System.out.println(t);
		sc.close();		
	} solve {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt(), i = 0, t = 0;
		int[] a = new int[N];
		boolean ok = true;
		while (N-->0) {
			a[i++] = sc.nextInt();
			ok&=((a[i-1]&1)==0);
		}
		if (ok) {
			while (true) {
				for (i=0; i<a.length; i++) {
					ok&=((a[i]&1)==0);
					if (ok) a[i] = a[i]/2;
				}
				if (!ok) break;
				t++;
			}
		}
		System.out.println(t);
		sc.close();		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt() N sc.nextInt() sc.nextInt sc i = 0 i 0 t = 0; t 0 int[] a = new int[N]; a new int[N] N boolean ok = true; ok true while (N-->0) {
			a[i++] = sc.nextInt();
			ok&=((a[i-1]&1)==0);
		} N-->0 N-- N 0 {
			a[i++] = sc.nextInt();
			ok&=((a[i-1]&1)==0);
		} a[i++] = sc.nextInt() a[i++] a i++ i sc.nextInt() sc.nextInt sc ok&=((a[i-1]&1)==0) ok ((a[i-1]&1)==0) (a[i-1]&1) a[i-1] a i-1 i 1 1 0 if (ok) {
			while (true) {
				for (i=0; i<a.length; i++) {
					ok&=((a[i]&1)==0);
					if (ok) a[i] = a[i]/2;
				}
				if (!ok) break;
				t++;
			}
		} ok {
			while (true) {
				for (i=0; i<a.length; i++) {
					ok&=((a[i]&1)==0);
					if (ok) a[i] = a[i]/2;
				}
				if (!ok) break;
				t++;
			}
		} while (true) {
				for (i=0; i<a.length; i++) {
					ok&=((a[i]&1)==0);
					if (ok) a[i] = a[i]/2;
				}
				if (!ok) break;
				t++;
			} true {
				for (i=0; i<a.length; i++) {
					ok&=((a[i]&1)==0);
					if (ok) a[i] = a[i]/2;
				}
				if (!ok) break;
				t++;
			} for (i=0; i<a.length; i++) {
					ok&=((a[i]&1)==0);
					if (ok) a[i] = a[i]/2;
				} i=0; i=0 i 0 i<a.length i a.length a a.length i++ i++ i {
					ok&=((a[i]&1)==0);
					if (ok) a[i] = a[i]/2;
				} {
					ok&=((a[i]&1)==0);
					if (ok) a[i] = a[i]/2;
				} ok&=((a[i]&1)==0) ok ((a[i]&1)==0) (a[i]&1) a[i] a i 1 0 if (ok) a[i] = a[i]/2; ok a[i] = a[i]/2 a[i] a i a[i]/2 a[i] a i 2 if (!ok) break; !ok ok break; t++ t System.out.println(t) System.out.println System.out System System.out t sc.close() sc.close sc public static void main(String args[]) {
		solve();
	} main {
		solve();
	} solve() solve String args[] args public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt(), i = 0, t = 0;
		int[] a = new int[N];
		boolean ok = true;
		while (N-->0) {
			a[i++] = sc.nextInt();
			ok&=((a[i-1]&1)==0);
		}
		if (ok) {
			while (true) {
				for (i=0; i<a.length; i++) {
					ok&=((a[i]&1)==0);
					if (ok) a[i] = a[i]/2;
				}
				if (!ok) break;
				t++;
			}
		}
		System.out.println(t);
		sc.close();		
	}

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

} public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt(), i = 0, t = 0;
		int[] a = new int[N];
		boolean ok = true;
		while (N-->0) {
			a[i++] = sc.nextInt();
			ok&=((a[i-1]&1)==0);
		}
		if (ok) {
			while (true) {
				for (i=0; i<a.length; i++) {
					ok&=((a[i]&1)==0);
					if (ok) a[i] = a[i]/2;
				}
				if (!ok) break;
				t++;
			}
		}
		System.out.println(t);
		sc.close();		
	}

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

} Main
import java.util.*;
// warm-up
public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt(), i = 0, t = 0;
		int[] a = new int[N];
		boolean ok = true;
		while (N-->0) {
			a[i++] = sc.nextInt();
			ok&=((a[i-1]&1)==0);
		}
		if (ok) {
			while (true) {
				for (i=0; i<a.length; i++) {
					ok&=((a[i]&1)==0);
					if (ok) a[i] = a[i]/2;
				}
				if (!ok) break;
				t++;
			}
		}
		System.out.println(t);
		sc.close();		
	}

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

}