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());

		int nums[] = new int[n];

//		Scanner sc2 = new Scanner(System.in);
		for (int i = 0; i < n; i++) {
			nums[i] = Integer.parseInt(sc.next());
		}
		int count = 0;

		while (true) {

			boolean flg = false;

			for (int i = 0; i < n; i++) {
				if (nums[i] % 2 == 0) {
					flg = true;
					nums[i] = nums[i]/2;
				} else {
					flg = false;
					break;
				}
			}

			if (flg) {
				count++;

				continue;
			} else {
				break;
			}
		}

		System.out.println(count);

	}
} 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());

		int nums[] = new int[n];

//		Scanner sc2 = new Scanner(System.in);
		for (int i = 0; i < n; i++) {
			nums[i] = Integer.parseInt(sc.next());
		}
		int count = 0;

		while (true) {

			boolean flg = false;

			for (int i = 0; i < n; i++) {
				if (nums[i] % 2 == 0) {
					flg = true;
					nums[i] = nums[i]/2;
				} else {
					flg = false;
					break;
				}
			}

			if (flg) {
				count++;

				continue;
			} else {
				break;
			}
		}

		System.out.println(count);

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


		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		int nums[] = new int[n];

//		Scanner sc2 = new Scanner(System.in);
		for (int i = 0; i < n; i++) {
			nums[i] = Integer.parseInt(sc.next());
		}
		int count = 0;

		while (true) {

			boolean flg = false;

			for (int i = 0; i < n; i++) {
				if (nums[i] % 2 == 0) {
					flg = true;
					nums[i] = nums[i]/2;
				} else {
					flg = false;
					break;
				}
			}

			if (flg) {
				count++;

				continue;
			} else {
				break;
			}
		}

		System.out.println(count);

	} main {


		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		int nums[] = new int[n];

//		Scanner sc2 = new Scanner(System.in);
		for (int i = 0; i < n; i++) {
			nums[i] = Integer.parseInt(sc.next());
		}
		int count = 0;

		while (true) {

			boolean flg = false;

			for (int i = 0; i < n; i++) {
				if (nums[i] % 2 == 0) {
					flg = true;
					nums[i] = nums[i]/2;
				} else {
					flg = false;
					break;
				}
			}

			if (flg) {
				count++;

				continue;
			} else {
				break;
			}
		}

		System.out.println(count);

	} 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 int nums[] = new int[n]; nums new int[n] n for (int i = 0; i < n; i++) {
			nums[i] = Integer.parseInt(sc.next());
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			nums[i] = Integer.parseInt(sc.next());
		} {
			nums[i] = Integer.parseInt(sc.next());
		} nums[i] = Integer.parseInt(sc.next()) nums[i] nums i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int count = 0; count 0 while (true) {

			boolean flg = false;

			for (int i = 0; i < n; i++) {
				if (nums[i] % 2 == 0) {
					flg = true;
					nums[i] = nums[i]/2;
				} else {
					flg = false;
					break;
				}
			}

			if (flg) {
				count++;

				continue;
			} else {
				break;
			}
		} true {

			boolean flg = false;

			for (int i = 0; i < n; i++) {
				if (nums[i] % 2 == 0) {
					flg = true;
					nums[i] = nums[i]/2;
				} else {
					flg = false;
					break;
				}
			}

			if (flg) {
				count++;

				continue;
			} else {
				break;
			}
		} boolean flg = false; flg false for (int i = 0; i < n; i++) {
				if (nums[i] % 2 == 0) {
					flg = true;
					nums[i] = nums[i]/2;
				} else {
					flg = false;
					break;
				}
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
				if (nums[i] % 2 == 0) {
					flg = true;
					nums[i] = nums[i]/2;
				} else {
					flg = false;
					break;
				}
			} {
				if (nums[i] % 2 == 0) {
					flg = true;
					nums[i] = nums[i]/2;
				} else {
					flg = false;
					break;
				}
			} if (nums[i] % 2 == 0) {
					flg = true;
					nums[i] = nums[i]/2;
				} else {
					flg = false;
					break;
				} nums[i] % 2 == 0 nums[i] % 2 nums[i] nums i 2 0 {
					flg = true;
					nums[i] = nums[i]/2;
				} flg = true flg true nums[i] = nums[i]/2 nums[i] nums i nums[i]/2 nums[i] nums i 2 {
					flg = false;
					break;
				} flg = false flg false break; if (flg) {
				count++;

				continue;
			} else {
				break;
			} flg {
				count++;

				continue;
			} count++ count continue; {
				break;
			} break; System.out.println(count) System.out.println System.out System System.out count String args[] args public class Main {
	public static void main(String args[]) {


		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		int nums[] = new int[n];

//		Scanner sc2 = new Scanner(System.in);
		for (int i = 0; i < n; i++) {
			nums[i] = Integer.parseInt(sc.next());
		}
		int count = 0;

		while (true) {

			boolean flg = false;

			for (int i = 0; i < n; i++) {
				if (nums[i] % 2 == 0) {
					flg = true;
					nums[i] = nums[i]/2;
				} else {
					flg = false;
					break;
				}
			}

			if (flg) {
				count++;

				continue;
			} else {
				break;
			}
		}

		System.out.println(count);

	}
} public class Main {
	public static void main(String args[]) {


		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		int nums[] = new int[n];

//		Scanner sc2 = new Scanner(System.in);
		for (int i = 0; i < n; i++) {
			nums[i] = Integer.parseInt(sc.next());
		}
		int count = 0;

		while (true) {

			boolean flg = false;

			for (int i = 0; i < n; i++) {
				if (nums[i] % 2 == 0) {
					flg = true;
					nums[i] = nums[i]/2;
				} else {
					flg = false;
					break;
				}
			}

			if (flg) {
				count++;

				continue;
			} else {
				break;
			}
		}

		System.out.println(count);

	}
} Main
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());

		int nums[] = new int[n];

//		Scanner sc2 = new Scanner(System.in);
		for (int i = 0; i < n; i++) {
			nums[i] = Integer.parseInt(sc.next());
		}
		int count = 0;

		while (true) {

			boolean flg = false;

			for (int i = 0; i < n; i++) {
				if (nums[i] % 2 == 0) {
					flg = true;
					nums[i] = nums[i]/2;
				} else {
					flg = false;
					break;
				}
			}

			if (flg) {
				count++;

				continue;
			} else {
				break;
			}
		}

		System.out.println(count);

	}
}
