import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Deque;

public class Main {

	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String str[] = br.readLine().split(" ");
		int a[] = new int[n];
		for (int i = 0; i < str.length; i++) {
			a[i] = Integer.parseInt(str[i]);
		}

		int count = 0;

		while (true) {
			for (int i = 0; i < n; i++) {
				if (a[i] % 2 != 0) {
					System.out.println(count);
					System.exit(0);
				} else {
					a[i] /= 2;
				}
			}
			count++;
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayDeque; ArrayDeque java.util import java.util.ArrayList; ArrayList java.util import java.util.Deque; Deque java.util public class Main {

	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String str[] = br.readLine().split(" ");
		int a[] = new int[n];
		for (int i = 0; i < str.length; i++) {
			a[i] = Integer.parseInt(str[i]);
		}

		int count = 0;

		while (true) {
			for (int i = 0; i < n; i++) {
				if (a[i] % 2 != 0) {
					System.out.println(count);
					System.exit(0);
				} else {
					a[i] /= 2;
				}
			}
			count++;
		}
	}
} Main public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String str[] = br.readLine().split(" ");
		int a[] = new int[n];
		for (int i = 0; i < str.length; i++) {
			a[i] = Integer.parseInt(str[i]);
		}

		int count = 0;

		while (true) {
			for (int i = 0; i < n; i++) {
				if (a[i] % 2 != 0) {
					System.out.println(count);
					System.exit(0);
				} else {
					a[i] /= 2;
				}
			}
			count++;
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String str[] = br.readLine().split(" ");
		int a[] = new int[n];
		for (int i = 0; i < str.length; i++) {
			a[i] = Integer.parseInt(str[i]);
		}

		int count = 0;

		while (true) {
			for (int i = 0; i < n; i++) {
				if (a[i] % 2 != 0) {
					System.out.println(count);
					System.exit(0);
				} else {
					a[i] /= 2;
				}
			}
			count++;
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String str[] = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a[] = new int[n]; a new int[n] n for (int i = 0; i < str.length; i++) {
			a[i] = Integer.parseInt(str[i]);
		} int i = 0; int i = 0; i 0 i < str.length i str.length str str.length i++ i++ i {
			a[i] = Integer.parseInt(str[i]);
		} {
			a[i] = Integer.parseInt(str[i]);
		} a[i] = Integer.parseInt(str[i]) a[i] a i Integer.parseInt(str[i]) Integer.parseInt Integer str[i] str i int count = 0; count 0 while (true) {
			for (int i = 0; i < n; i++) {
				if (a[i] % 2 != 0) {
					System.out.println(count);
					System.exit(0);
				} else {
					a[i] /= 2;
				}
			}
			count++;
		} true {
			for (int i = 0; i < n; i++) {
				if (a[i] % 2 != 0) {
					System.out.println(count);
					System.exit(0);
				} else {
					a[i] /= 2;
				}
			}
			count++;
		} for (int i = 0; i < n; i++) {
				if (a[i] % 2 != 0) {
					System.out.println(count);
					System.exit(0);
				} else {
					a[i] /= 2;
				}
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
				if (a[i] % 2 != 0) {
					System.out.println(count);
					System.exit(0);
				} else {
					a[i] /= 2;
				}
			} {
				if (a[i] % 2 != 0) {
					System.out.println(count);
					System.exit(0);
				} else {
					a[i] /= 2;
				}
			} if (a[i] % 2 != 0) {
					System.out.println(count);
					System.exit(0);
				} else {
					a[i] /= 2;
				} a[i] % 2 != 0 a[i] % 2 a[i] a i 2 0 {
					System.out.println(count);
					System.exit(0);
				} System.out.println(count) System.out.println System.out System System.out count System.exit(0) System.exit System 0 {
					a[i] /= 2;
				} a[i] /= 2 a[i] a i 2 count++ count String args[] args public class Main {

	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String str[] = br.readLine().split(" ");
		int a[] = new int[n];
		for (int i = 0; i < str.length; i++) {
			a[i] = Integer.parseInt(str[i]);
		}

		int count = 0;

		while (true) {
			for (int i = 0; i < n; i++) {
				if (a[i] % 2 != 0) {
					System.out.println(count);
					System.exit(0);
				} else {
					a[i] /= 2;
				}
			}
			count++;
		}
	}
} public class Main {

	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String str[] = br.readLine().split(" ");
		int a[] = new int[n];
		for (int i = 0; i < str.length; i++) {
			a[i] = Integer.parseInt(str[i]);
		}

		int count = 0;

		while (true) {
			for (int i = 0; i < n; i++) {
				if (a[i] % 2 != 0) {
					System.out.println(count);
					System.exit(0);
				} else {
					a[i] /= 2;
				}
			}
			count++;
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Deque;

public class Main {

	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String str[] = br.readLine().split(" ");
		int a[] = new int[n];
		for (int i = 0; i < str.length; i++) {
			a[i] = Integer.parseInt(str[i]);
		}

		int count = 0;

		while (true) {
			for (int i = 0; i < n; i++) {
				if (a[i] % 2 != 0) {
					System.out.println(count);
					System.exit(0);
				} else {
					a[i] /= 2;
				}
			}
			count++;
		}
	}
}