import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ABC_081_B
		Scanner sc = new Scanner(System.in);
		int ret = 0;

		int N = sc.nextInt();
		int[] A = new int[N];
		int i = 0;
		boolean flag = true;

		for(i=0; i<N; i++) {
			A[i] = sc.nextInt();
		}
	    // Scannerクラスのインスタンスをクローズ
		sc.close();

		while(flag) {
			for(i=0; i<N; i++) {
				if(A[i] % 2 == 1) {
					flag = false;
					break;
				} else {
					A[i] = A[i] / 2;
					if(i == N-1) {
						ret++;
					}
				}
			}
		}

		System.out.println(ret);
	}

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

	public static void main(String[] args) {
		// TODO ABC_081_B
		Scanner sc = new Scanner(System.in);
		int ret = 0;

		int N = sc.nextInt();
		int[] A = new int[N];
		int i = 0;
		boolean flag = true;

		for(i=0; i<N; i++) {
			A[i] = sc.nextInt();
		}
	    // Scannerクラスのインスタンスをクローズ
		sc.close();

		while(flag) {
			for(i=0; i<N; i++) {
				if(A[i] % 2 == 1) {
					flag = false;
					break;
				} else {
					A[i] = A[i] / 2;
					if(i == N-1) {
						ret++;
					}
				}
			}
		}

		System.out.println(ret);
	}

} Main public static void main(String[] args) {
		// TODO ABC_081_B
		Scanner sc = new Scanner(System.in);
		int ret = 0;

		int N = sc.nextInt();
		int[] A = new int[N];
		int i = 0;
		boolean flag = true;

		for(i=0; i<N; i++) {
			A[i] = sc.nextInt();
		}
	    // Scannerクラスのインスタンスをクローズ
		sc.close();

		while(flag) {
			for(i=0; i<N; i++) {
				if(A[i] % 2 == 1) {
					flag = false;
					break;
				} else {
					A[i] = A[i] / 2;
					if(i == N-1) {
						ret++;
					}
				}
			}
		}

		System.out.println(ret);
	} main {
		// TODO ABC_081_B
		Scanner sc = new Scanner(System.in);
		int ret = 0;

		int N = sc.nextInt();
		int[] A = new int[N];
		int i = 0;
		boolean flag = true;

		for(i=0; i<N; i++) {
			A[i] = sc.nextInt();
		}
	    // Scannerクラスのインスタンスをクローズ
		sc.close();

		while(flag) {
			for(i=0; i<N; i++) {
				if(A[i] % 2 == 1) {
					flag = false;
					break;
				} else {
					A[i] = A[i] / 2;
					if(i == N-1) {
						ret++;
					}
				}
			}
		}

		System.out.println(ret);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int ret = 0; ret 0 int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] A = new int[N]; A new int[N] N int i = 0; i 0 boolean flag = true; flag true for(i=0; i<N; i++) {
			A[i] = sc.nextInt();
		} i=0; i=0 i 0 i<N i N i++ i++ i {
			A[i] = sc.nextInt();
		} {
			A[i] = sc.nextInt();
		} A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc sc.close() sc.close sc while(flag) {
			for(i=0; i<N; i++) {
				if(A[i] % 2 == 1) {
					flag = false;
					break;
				} else {
					A[i] = A[i] / 2;
					if(i == N-1) {
						ret++;
					}
				}
			}
		} flag {
			for(i=0; i<N; i++) {
				if(A[i] % 2 == 1) {
					flag = false;
					break;
				} else {
					A[i] = A[i] / 2;
					if(i == N-1) {
						ret++;
					}
				}
			}
		} for(i=0; i<N; i++) {
				if(A[i] % 2 == 1) {
					flag = false;
					break;
				} else {
					A[i] = A[i] / 2;
					if(i == N-1) {
						ret++;
					}
				}
			} i=0; i=0 i 0 i<N i N i++ i++ i {
				if(A[i] % 2 == 1) {
					flag = false;
					break;
				} else {
					A[i] = A[i] / 2;
					if(i == N-1) {
						ret++;
					}
				}
			} {
				if(A[i] % 2 == 1) {
					flag = false;
					break;
				} else {
					A[i] = A[i] / 2;
					if(i == N-1) {
						ret++;
					}
				}
			} if(A[i] % 2 == 1) {
					flag = false;
					break;
				} else {
					A[i] = A[i] / 2;
					if(i == N-1) {
						ret++;
					}
				} A[i] % 2 == 1 A[i] % 2 A[i] A i 2 1 {
					flag = false;
					break;
				} flag = false flag false break; {
					A[i] = A[i] / 2;
					if(i == N-1) {
						ret++;
					}
				} A[i] = A[i] / 2 A[i] A i A[i] / 2 A[i] A i 2 if(i == N-1) {
						ret++;
					} i == N-1 i N-1 N 1 {
						ret++;
					} ret++ ret System.out.println(ret) System.out.println System.out System System.out ret String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ABC_081_B
		Scanner sc = new Scanner(System.in);
		int ret = 0;

		int N = sc.nextInt();
		int[] A = new int[N];
		int i = 0;
		boolean flag = true;

		for(i=0; i<N; i++) {
			A[i] = sc.nextInt();
		}
	    // Scannerクラスのインスタンスをクローズ
		sc.close();

		while(flag) {
			for(i=0; i<N; i++) {
				if(A[i] % 2 == 1) {
					flag = false;
					break;
				} else {
					A[i] = A[i] / 2;
					if(i == N-1) {
						ret++;
					}
				}
			}
		}

		System.out.println(ret);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ABC_081_B
		Scanner sc = new Scanner(System.in);
		int ret = 0;

		int N = sc.nextInt();
		int[] A = new int[N];
		int i = 0;
		boolean flag = true;

		for(i=0; i<N; i++) {
			A[i] = sc.nextInt();
		}
	    // Scannerクラスのインスタンスをクローズ
		sc.close();

		while(flag) {
			for(i=0; i<N; i++) {
				if(A[i] % 2 == 1) {
					flag = false;
					break;
				} else {
					A[i] = A[i] / 2;
					if(i == N-1) {
						ret++;
					}
				}
			}
		}

		System.out.println(ret);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ABC_081_B
		Scanner sc = new Scanner(System.in);
		int ret = 0;

		int N = sc.nextInt();
		int[] A = new int[N];
		int i = 0;
		boolean flag = true;

		for(i=0; i<N; i++) {
			A[i] = sc.nextInt();
		}
	    // Scannerクラスのインスタンスをクローズ
		sc.close();

		while(flag) {
			for(i=0; i<N; i++) {
				if(A[i] % 2 == 1) {
					flag = false;
					break;
				} else {
					A[i] = A[i] / 2;
					if(i == N-1) {
						ret++;
					}
				}
			}
		}

		System.out.println(ret);
	}

}
