import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		int count = 0;
		int escape = 0;

		Scanner sc = new Scanner(System.in);

		int inputDigital = sc.nextInt();

		int[] ary = new int[inputDigital];

		for (int setDigital = 0; setDigital < ary.length; setDigital++) {

			ary[setDigital] = sc.nextInt();

		}

		for (;;) {

			for (int searchAry = 0; searchAry < ary.length; searchAry++) {

				if (ary[searchAry] % 2 == 1) {

					escape = 1;
					sc.close();
					System.out.println(count);
					break;

				}

				ary[searchAry] = ary[searchAry] / 2;

			}

			if (escape == 1) {
				break;
			}

			count++;
		}

	}
} import java.util.Scanner; Scanner java.util class Main {

	public static void main(String[] args) {

		int count = 0;
		int escape = 0;

		Scanner sc = new Scanner(System.in);

		int inputDigital = sc.nextInt();

		int[] ary = new int[inputDigital];

		for (int setDigital = 0; setDigital < ary.length; setDigital++) {

			ary[setDigital] = sc.nextInt();

		}

		for (;;) {

			for (int searchAry = 0; searchAry < ary.length; searchAry++) {

				if (ary[searchAry] % 2 == 1) {

					escape = 1;
					sc.close();
					System.out.println(count);
					break;

				}

				ary[searchAry] = ary[searchAry] / 2;

			}

			if (escape == 1) {
				break;
			}

			count++;
		}

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

		int count = 0;
		int escape = 0;

		Scanner sc = new Scanner(System.in);

		int inputDigital = sc.nextInt();

		int[] ary = new int[inputDigital];

		for (int setDigital = 0; setDigital < ary.length; setDigital++) {

			ary[setDigital] = sc.nextInt();

		}

		for (;;) {

			for (int searchAry = 0; searchAry < ary.length; searchAry++) {

				if (ary[searchAry] % 2 == 1) {

					escape = 1;
					sc.close();
					System.out.println(count);
					break;

				}

				ary[searchAry] = ary[searchAry] / 2;

			}

			if (escape == 1) {
				break;
			}

			count++;
		}

	} main {

		int count = 0;
		int escape = 0;

		Scanner sc = new Scanner(System.in);

		int inputDigital = sc.nextInt();

		int[] ary = new int[inputDigital];

		for (int setDigital = 0; setDigital < ary.length; setDigital++) {

			ary[setDigital] = sc.nextInt();

		}

		for (;;) {

			for (int searchAry = 0; searchAry < ary.length; searchAry++) {

				if (ary[searchAry] % 2 == 1) {

					escape = 1;
					sc.close();
					System.out.println(count);
					break;

				}

				ary[searchAry] = ary[searchAry] / 2;

			}

			if (escape == 1) {
				break;
			}

			count++;
		}

	} int count = 0; count 0 int escape = 0; escape 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int inputDigital = sc.nextInt(); inputDigital sc.nextInt() sc.nextInt sc int[] ary = new int[inputDigital]; ary new int[inputDigital] inputDigital for (int setDigital = 0; setDigital < ary.length; setDigital++) {

			ary[setDigital] = sc.nextInt();

		} int setDigital = 0; int setDigital = 0; setDigital 0 setDigital < ary.length setDigital ary.length ary ary.length setDigital++ setDigital++ setDigital {

			ary[setDigital] = sc.nextInt();

		} {

			ary[setDigital] = sc.nextInt();

		} ary[setDigital] = sc.nextInt() ary[setDigital] ary setDigital sc.nextInt() sc.nextInt sc for (;;) {

			for (int searchAry = 0; searchAry < ary.length; searchAry++) {

				if (ary[searchAry] % 2 == 1) {

					escape = 1;
					sc.close();
					System.out.println(count);
					break;

				}

				ary[searchAry] = ary[searchAry] / 2;

			}

			if (escape == 1) {
				break;
			}

			count++;
		} ; {

			for (int searchAry = 0; searchAry < ary.length; searchAry++) {

				if (ary[searchAry] % 2 == 1) {

					escape = 1;
					sc.close();
					System.out.println(count);
					break;

				}

				ary[searchAry] = ary[searchAry] / 2;

			}

			if (escape == 1) {
				break;
			}

			count++;
		} {

			for (int searchAry = 0; searchAry < ary.length; searchAry++) {

				if (ary[searchAry] % 2 == 1) {

					escape = 1;
					sc.close();
					System.out.println(count);
					break;

				}

				ary[searchAry] = ary[searchAry] / 2;

			}

			if (escape == 1) {
				break;
			}

			count++;
		} for (int searchAry = 0; searchAry < ary.length; searchAry++) {

				if (ary[searchAry] % 2 == 1) {

					escape = 1;
					sc.close();
					System.out.println(count);
					break;

				}

				ary[searchAry] = ary[searchAry] / 2;

			} int searchAry = 0; int searchAry = 0; searchAry 0 searchAry < ary.length searchAry ary.length ary ary.length searchAry++ searchAry++ searchAry {

				if (ary[searchAry] % 2 == 1) {

					escape = 1;
					sc.close();
					System.out.println(count);
					break;

				}

				ary[searchAry] = ary[searchAry] / 2;

			} {

				if (ary[searchAry] % 2 == 1) {

					escape = 1;
					sc.close();
					System.out.println(count);
					break;

				}

				ary[searchAry] = ary[searchAry] / 2;

			} if (ary[searchAry] % 2 == 1) {

					escape = 1;
					sc.close();
					System.out.println(count);
					break;

				} ary[searchAry] % 2 == 1 ary[searchAry] % 2 ary[searchAry] ary searchAry 2 1 {

					escape = 1;
					sc.close();
					System.out.println(count);
					break;

				} escape = 1 escape 1 sc.close() sc.close sc System.out.println(count) System.out.println System.out System System.out count break; ary[searchAry] = ary[searchAry] / 2 ary[searchAry] ary searchAry ary[searchAry] / 2 ary[searchAry] ary searchAry 2 if (escape == 1) {
				break;
			} escape == 1 escape 1 {
				break;
			} break; count++ count String[] args args
import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		int count = 0;
		int escape = 0;

		Scanner sc = new Scanner(System.in);

		int inputDigital = sc.nextInt();

		int[] ary = new int[inputDigital];

		for (int setDigital = 0; setDigital < ary.length; setDigital++) {

			ary[setDigital] = sc.nextInt();

		}

		for (;;) {

			for (int searchAry = 0; searchAry < ary.length; searchAry++) {

				if (ary[searchAry] % 2 == 1) {

					escape = 1;
					sc.close();
					System.out.println(count);
					break;

				}

				ary[searchAry] = ary[searchAry] / 2;

			}

			if (escape == 1) {
				break;
			}

			count++;
		}

	}
}