import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int[] numbers = new int[220];
		int num;

		int N = sc.nextInt();
		for (int i=0; i<N; i++) {
			num = sc.nextInt();
			numbers[i] = num;
		}
		sc.close();

		int cnt=0;
		String judge = "all_even";
		while(true) {

			for (int i=0; i<N; i++) {
				if (numbers[i]%2!=0) {
					judge = "has_odd";
				}
			}
			if(judge=="has_odd") break;

			for (int i=0; i<N; i++) {
				numbers[i]/=2;
			}

			cnt ++;
		}
		System.out.println(cnt);


	}

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

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int[] numbers = new int[220];
		int num;

		int N = sc.nextInt();
		for (int i=0; i<N; i++) {
			num = sc.nextInt();
			numbers[i] = num;
		}
		sc.close();

		int cnt=0;
		String judge = "all_even";
		while(true) {

			for (int i=0; i<N; i++) {
				if (numbers[i]%2!=0) {
					judge = "has_odd";
				}
			}
			if(judge=="has_odd") break;

			for (int i=0; i<N; i++) {
				numbers[i]/=2;
			}

			cnt ++;
		}
		System.out.println(cnt);


	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int[] numbers = new int[220];
		int num;

		int N = sc.nextInt();
		for (int i=0; i<N; i++) {
			num = sc.nextInt();
			numbers[i] = num;
		}
		sc.close();

		int cnt=0;
		String judge = "all_even";
		while(true) {

			for (int i=0; i<N; i++) {
				if (numbers[i]%2!=0) {
					judge = "has_odd";
				}
			}
			if(judge=="has_odd") break;

			for (int i=0; i<N; i++) {
				numbers[i]/=2;
			}

			cnt ++;
		}
		System.out.println(cnt);


	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int[] numbers = new int[220];
		int num;

		int N = sc.nextInt();
		for (int i=0; i<N; i++) {
			num = sc.nextInt();
			numbers[i] = num;
		}
		sc.close();

		int cnt=0;
		String judge = "all_even";
		while(true) {

			for (int i=0; i<N; i++) {
				if (numbers[i]%2!=0) {
					judge = "has_odd";
				}
			}
			if(judge=="has_odd") break;

			for (int i=0; i<N; i++) {
				numbers[i]/=2;
			}

			cnt ++;
		}
		System.out.println(cnt);


	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] numbers = new int[220]; numbers new int[220] 220 int num; num int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc for (int i=0; i<N; i++) {
			num = sc.nextInt();
			numbers[i] = num;
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			num = sc.nextInt();
			numbers[i] = num;
		} {
			num = sc.nextInt();
			numbers[i] = num;
		} num = sc.nextInt() num sc.nextInt() sc.nextInt sc numbers[i] = num numbers[i] numbers i num sc.close() sc.close sc int cnt=0; cnt 0 String judge = "all_even"; judge "all_even" while(true) {

			for (int i=0; i<N; i++) {
				if (numbers[i]%2!=0) {
					judge = "has_odd";
				}
			}
			if(judge=="has_odd") break;

			for (int i=0; i<N; i++) {
				numbers[i]/=2;
			}

			cnt ++;
		} true {

			for (int i=0; i<N; i++) {
				if (numbers[i]%2!=0) {
					judge = "has_odd";
				}
			}
			if(judge=="has_odd") break;

			for (int i=0; i<N; i++) {
				numbers[i]/=2;
			}

			cnt ++;
		} for (int i=0; i<N; i++) {
				if (numbers[i]%2!=0) {
					judge = "has_odd";
				}
			} int i=0; int i=0; i 0 i<N i N i++ i++ i {
				if (numbers[i]%2!=0) {
					judge = "has_odd";
				}
			} {
				if (numbers[i]%2!=0) {
					judge = "has_odd";
				}
			} if (numbers[i]%2!=0) {
					judge = "has_odd";
				} numbers[i]%2!=0 numbers[i]%2 numbers[i] numbers i 2 0 {
					judge = "has_odd";
				} judge = "has_odd" judge "has_odd" if(judge=="has_odd") break; judge=="has_odd" judge "has_odd" break; for (int i=0; i<N; i++) {
				numbers[i]/=2;
			} int i=0; int i=0; i 0 i<N i N i++ i++ i {
				numbers[i]/=2;
			} {
				numbers[i]/=2;
			} numbers[i]/=2 numbers[i] numbers i 2 cnt ++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int[] numbers = new int[220];
		int num;

		int N = sc.nextInt();
		for (int i=0; i<N; i++) {
			num = sc.nextInt();
			numbers[i] = num;
		}
		sc.close();

		int cnt=0;
		String judge = "all_even";
		while(true) {

			for (int i=0; i<N; i++) {
				if (numbers[i]%2!=0) {
					judge = "has_odd";
				}
			}
			if(judge=="has_odd") break;

			for (int i=0; i<N; i++) {
				numbers[i]/=2;
			}

			cnt ++;
		}
		System.out.println(cnt);


	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int[] numbers = new int[220];
		int num;

		int N = sc.nextInt();
		for (int i=0; i<N; i++) {
			num = sc.nextInt();
			numbers[i] = num;
		}
		sc.close();

		int cnt=0;
		String judge = "all_even";
		while(true) {

			for (int i=0; i<N; i++) {
				if (numbers[i]%2!=0) {
					judge = "has_odd";
				}
			}
			if(judge=="has_odd") break;

			for (int i=0; i<N; i++) {
				numbers[i]/=2;
			}

			cnt ++;
		}
		System.out.println(cnt);


	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int[] numbers = new int[220];
		int num;

		int N = sc.nextInt();
		for (int i=0; i<N; i++) {
			num = sc.nextInt();
			numbers[i] = num;
		}
		sc.close();

		int cnt=0;
		String judge = "all_even";
		while(true) {

			for (int i=0; i<N; i++) {
				if (numbers[i]%2!=0) {
					judge = "has_odd";
				}
			}
			if(judge=="has_odd") break;

			for (int i=0; i<N; i++) {
				numbers[i]/=2;
			}

			cnt ++;
		}
		System.out.println(cnt);


	}

}