import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 処理対象個数の入力
		int input_1 = sc.nextInt();
		// 処理対象の入力
		ArrayList<Integer> target_list = new ArrayList<>();
		for(int i=0;i<input_1;i++) {
			target_list.add(sc.nextInt());
		}

		int result = countExponent2(target_list.get(0));
		int tmp;
		for (int i = 1; i < target_list.size(); i++) {
			tmp = countExponent2(target_list.get(i));
			if(result > tmp) {
				result = tmp;
			}
		}

		// 出力
		System.out.println(result);
		sc.close();

	}

	private static int countExponent2(int x) {
		int exponent2 = 0;
		// 引数に対して何回、２で割る処理が実行できるかを調べる
		while(x%2 == 0) {
			x = x/2;
			exponent2++;
		}

		return exponent2;
	}

} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 処理対象個数の入力
		int input_1 = sc.nextInt();
		// 処理対象の入力
		ArrayList<Integer> target_list = new ArrayList<>();
		for(int i=0;i<input_1;i++) {
			target_list.add(sc.nextInt());
		}

		int result = countExponent2(target_list.get(0));
		int tmp;
		for (int i = 1; i < target_list.size(); i++) {
			tmp = countExponent2(target_list.get(i));
			if(result > tmp) {
				result = tmp;
			}
		}

		// 出力
		System.out.println(result);
		sc.close();

	}

	private static int countExponent2(int x) {
		int exponent2 = 0;
		// 引数に対して何回、２で割る処理が実行できるかを調べる
		while(x%2 == 0) {
			x = x/2;
			exponent2++;
		}

		return exponent2;
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 処理対象個数の入力
		int input_1 = sc.nextInt();
		// 処理対象の入力
		ArrayList<Integer> target_list = new ArrayList<>();
		for(int i=0;i<input_1;i++) {
			target_list.add(sc.nextInt());
		}

		int result = countExponent2(target_list.get(0));
		int tmp;
		for (int i = 1; i < target_list.size(); i++) {
			tmp = countExponent2(target_list.get(i));
			if(result > tmp) {
				result = tmp;
			}
		}

		// 出力
		System.out.println(result);
		sc.close();

	} main {
		Scanner sc = new Scanner(System.in);

		// 処理対象個数の入力
		int input_1 = sc.nextInt();
		// 処理対象の入力
		ArrayList<Integer> target_list = new ArrayList<>();
		for(int i=0;i<input_1;i++) {
			target_list.add(sc.nextInt());
		}

		int result = countExponent2(target_list.get(0));
		int tmp;
		for (int i = 1; i < target_list.size(); i++) {
			tmp = countExponent2(target_list.get(i));
			if(result > tmp) {
				result = tmp;
			}
		}

		// 出力
		System.out.println(result);
		sc.close();

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int input_1 = sc.nextInt(); input_1 sc.nextInt() sc.nextInt sc ArrayList<Integer> target_list = new ArrayList<>(); target_list new ArrayList<>() for(int i=0;i<input_1;i++) {
			target_list.add(sc.nextInt());
		} int i=0; int i=0; i 0 i<input_1 i input_1 i++ i++ i {
			target_list.add(sc.nextInt());
		} {
			target_list.add(sc.nextInt());
		} target_list.add(sc.nextInt()) target_list.add target_list sc.nextInt() sc.nextInt sc int result = countExponent2(target_list.get(0)); result countExponent2(target_list.get(0)) countExponent2 target_list.get(0) target_list.get target_list 0 int tmp; tmp for (int i = 1; i < target_list.size(); i++) {
			tmp = countExponent2(target_list.get(i));
			if(result > tmp) {
				result = tmp;
			}
		} int i = 1; int i = 1; i 1 i < target_list.size() i target_list.size() target_list.size target_list i++ i++ i {
			tmp = countExponent2(target_list.get(i));
			if(result > tmp) {
				result = tmp;
			}
		} {
			tmp = countExponent2(target_list.get(i));
			if(result > tmp) {
				result = tmp;
			}
		} tmp = countExponent2(target_list.get(i)) tmp countExponent2(target_list.get(i)) countExponent2 target_list.get(i) target_list.get target_list i if(result > tmp) {
				result = tmp;
			} result > tmp result tmp {
				result = tmp;
			} result = tmp result tmp System.out.println(result) System.out.println System.out System System.out result sc.close() sc.close sc String[] args args private static int countExponent2(int x) {
		int exponent2 = 0;
		// 引数に対して何回、２で割る処理が実行できるかを調べる
		while(x%2 == 0) {
			x = x/2;
			exponent2++;
		}

		return exponent2;
	} countExponent2 {
		int exponent2 = 0;
		// 引数に対して何回、２で割る処理が実行できるかを調べる
		while(x%2 == 0) {
			x = x/2;
			exponent2++;
		}

		return exponent2;
	} int exponent2 = 0; exponent2 0 while(x%2 == 0) {
			x = x/2;
			exponent2++;
		} x%2 == 0 x%2 x 2 0 {
			x = x/2;
			exponent2++;
		} x = x/2 x x/2 x 2 exponent2++ exponent2 return exponent2; exponent2 int x x public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 処理対象個数の入力
		int input_1 = sc.nextInt();
		// 処理対象の入力
		ArrayList<Integer> target_list = new ArrayList<>();
		for(int i=0;i<input_1;i++) {
			target_list.add(sc.nextInt());
		}

		int result = countExponent2(target_list.get(0));
		int tmp;
		for (int i = 1; i < target_list.size(); i++) {
			tmp = countExponent2(target_list.get(i));
			if(result > tmp) {
				result = tmp;
			}
		}

		// 出力
		System.out.println(result);
		sc.close();

	}

	private static int countExponent2(int x) {
		int exponent2 = 0;
		// 引数に対して何回、２で割る処理が実行できるかを調べる
		while(x%2 == 0) {
			x = x/2;
			exponent2++;
		}

		return exponent2;
	}

} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 処理対象個数の入力
		int input_1 = sc.nextInt();
		// 処理対象の入力
		ArrayList<Integer> target_list = new ArrayList<>();
		for(int i=0;i<input_1;i++) {
			target_list.add(sc.nextInt());
		}

		int result = countExponent2(target_list.get(0));
		int tmp;
		for (int i = 1; i < target_list.size(); i++) {
			tmp = countExponent2(target_list.get(i));
			if(result > tmp) {
				result = tmp;
			}
		}

		// 出力
		System.out.println(result);
		sc.close();

	}

	private static int countExponent2(int x) {
		int exponent2 = 0;
		// 引数に対して何回、２で割る処理が実行できるかを調べる
		while(x%2 == 0) {
			x = x/2;
			exponent2++;
		}

		return exponent2;
	}

} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 処理対象個数の入力
		int input_1 = sc.nextInt();
		// 処理対象の入力
		ArrayList<Integer> target_list = new ArrayList<>();
		for(int i=0;i<input_1;i++) {
			target_list.add(sc.nextInt());
		}

		int result = countExponent2(target_list.get(0));
		int tmp;
		for (int i = 1; i < target_list.size(); i++) {
			tmp = countExponent2(target_list.get(i));
			if(result > tmp) {
				result = tmp;
			}
		}

		// 出力
		System.out.println(result);
		sc.close();

	}

	private static int countExponent2(int x) {
		int exponent2 = 0;
		// 引数に対して何回、２で割る処理が実行できるかを調べる
		while(x%2 == 0) {
			x = x/2;
			exponent2++;
		}

		return exponent2;
	}

}
