import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] A = new int[N];

		for (int i = 0; i < A.length; i++) {
			A[i] = sc.nextInt();
		}

		int res = 0;

		while (true) {
			
			boolean existOdd = false;

			// check
			for (int i = 0; i < A.length; i++) {

				if (A[i] % 2 != 0) {
					existOdd = true;
					break;
				}
			}
			
			if (existOdd) {
				break;
			}

			// update
			for (int i = 0; i < A.length; i++) {
				A[i] = A[i] / 2;
			}
			
			res++;
		}
		
		System.out.println(res);
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] A = new int[N];

		for (int i = 0; i < A.length; i++) {
			A[i] = sc.nextInt();
		}

		int res = 0;

		while (true) {
			
			boolean existOdd = false;

			// check
			for (int i = 0; i < A.length; i++) {

				if (A[i] % 2 != 0) {
					existOdd = true;
					break;
				}
			}
			
			if (existOdd) {
				break;
			}

			// update
			for (int i = 0; i < A.length; i++) {
				A[i] = A[i] / 2;
			}
			
			res++;
		}
		
		System.out.println(res);
	}

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

		int[] A = new int[N];

		for (int i = 0; i < A.length; i++) {
			A[i] = sc.nextInt();
		}

		int res = 0;

		while (true) {
			
			boolean existOdd = false;

			// check
			for (int i = 0; i < A.length; i++) {

				if (A[i] % 2 != 0) {
					existOdd = true;
					break;
				}
			}
			
			if (existOdd) {
				break;
			}

			// update
			for (int i = 0; i < A.length; i++) {
				A[i] = A[i] / 2;
			}
			
			res++;
		}
		
		System.out.println(res);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] A = new int[N];

		for (int i = 0; i < A.length; i++) {
			A[i] = sc.nextInt();
		}

		int res = 0;

		while (true) {
			
			boolean existOdd = false;

			// check
			for (int i = 0; i < A.length; i++) {

				if (A[i] % 2 != 0) {
					existOdd = true;
					break;
				}
			}
			
			if (existOdd) {
				break;
			}

			// update
			for (int i = 0; i < A.length; i++) {
				A[i] = A[i] / 2;
			}
			
			res++;
		}
		
		System.out.println(res);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] A = new int[N]; A new int[N] N for (int i = 0; i < A.length; i++) {
			A[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < A.length i A.length A A.length i++ i++ i {
			A[i] = sc.nextInt();
		} {
			A[i] = sc.nextInt();
		} A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc int res = 0; res 0 while (true) {
			
			boolean existOdd = false;

			// check
			for (int i = 0; i < A.length; i++) {

				if (A[i] % 2 != 0) {
					existOdd = true;
					break;
				}
			}
			
			if (existOdd) {
				break;
			}

			// update
			for (int i = 0; i < A.length; i++) {
				A[i] = A[i] / 2;
			}
			
			res++;
		} true {
			
			boolean existOdd = false;

			// check
			for (int i = 0; i < A.length; i++) {

				if (A[i] % 2 != 0) {
					existOdd = true;
					break;
				}
			}
			
			if (existOdd) {
				break;
			}

			// update
			for (int i = 0; i < A.length; i++) {
				A[i] = A[i] / 2;
			}
			
			res++;
		} boolean existOdd = false; existOdd false for (int i = 0; i < A.length; i++) {

				if (A[i] % 2 != 0) {
					existOdd = true;
					break;
				}
			} int i = 0; int i = 0; i 0 i < A.length i A.length A A.length i++ i++ i {

				if (A[i] % 2 != 0) {
					existOdd = true;
					break;
				}
			} {

				if (A[i] % 2 != 0) {
					existOdd = true;
					break;
				}
			} if (A[i] % 2 != 0) {
					existOdd = true;
					break;
				} A[i] % 2 != 0 A[i] % 2 A[i] A i 2 0 {
					existOdd = true;
					break;
				} existOdd = true existOdd true break; if (existOdd) {
				break;
			} existOdd {
				break;
			} break; for (int i = 0; i < A.length; i++) {
				A[i] = A[i] / 2;
			} int i = 0; int i = 0; i 0 i < A.length i A.length A A.length i++ i++ i {
				A[i] = A[i] / 2;
			} {
				A[i] = A[i] / 2;
			} A[i] = A[i] / 2 A[i] A i A[i] / 2 A[i] A i 2 res++ res System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] A = new int[N];

		for (int i = 0; i < A.length; i++) {
			A[i] = sc.nextInt();
		}

		int res = 0;

		while (true) {
			
			boolean existOdd = false;

			// check
			for (int i = 0; i < A.length; i++) {

				if (A[i] % 2 != 0) {
					existOdd = true;
					break;
				}
			}
			
			if (existOdd) {
				break;
			}

			// update
			for (int i = 0; i < A.length; i++) {
				A[i] = A[i] / 2;
			}
			
			res++;
		}
		
		System.out.println(res);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] A = new int[N];

		for (int i = 0; i < A.length; i++) {
			A[i] = sc.nextInt();
		}

		int res = 0;

		while (true) {
			
			boolean existOdd = false;

			// check
			for (int i = 0; i < A.length; i++) {

				if (A[i] % 2 != 0) {
					existOdd = true;
					break;
				}
			}
			
			if (existOdd) {
				break;
			}

			// update
			for (int i = 0; i < A.length; i++) {
				A[i] = A[i] / 2;
			}
			
			res++;
		}
		
		System.out.println(res);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] A = new int[N];

		for (int i = 0; i < A.length; i++) {
			A[i] = sc.nextInt();
		}

		int res = 0;

		while (true) {
			
			boolean existOdd = false;

			// check
			for (int i = 0; i < A.length; i++) {

				if (A[i] % 2 != 0) {
					existOdd = true;
					break;
				}
			}
			
			if (existOdd) {
				break;
			}

			// update
			for (int i = 0; i < A.length; i++) {
				A[i] = A[i] / 2;
			}
			
			res++;
		}
		
		System.out.println(res);
	}

}