import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int[] max = new int[N];
		
		for(int i = 0; i < N; i++) {
			int A = sc.nextInt();
			int count = 0;
			while(A % 2 == 0) {
				count++;
				A /= 2;
			}
			max[i] = count;
		}
		Arrays.sort(max);
		System.out.println(max[0]);
	}
} import java.util.Arrays; Arrays 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 N = sc.nextInt();
		
		int[] max = new int[N];
		
		for(int i = 0; i < N; i++) {
			int A = sc.nextInt();
			int count = 0;
			while(A % 2 == 0) {
				count++;
				A /= 2;
			}
			max[i] = count;
		}
		Arrays.sort(max);
		System.out.println(max[0]);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int[] max = new int[N];
		
		for(int i = 0; i < N; i++) {
			int A = sc.nextInt();
			int count = 0;
			while(A % 2 == 0) {
				count++;
				A /= 2;
			}
			max[i] = count;
		}
		Arrays.sort(max);
		System.out.println(max[0]);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int[] max = new int[N];
		
		for(int i = 0; i < N; i++) {
			int A = sc.nextInt();
			int count = 0;
			while(A % 2 == 0) {
				count++;
				A /= 2;
			}
			max[i] = count;
		}
		Arrays.sort(max);
		System.out.println(max[0]);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] max = new int[N]; max new int[N] N for(int i = 0; i < N; i++) {
			int A = sc.nextInt();
			int count = 0;
			while(A % 2 == 0) {
				count++;
				A /= 2;
			}
			max[i] = count;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int A = sc.nextInt();
			int count = 0;
			while(A % 2 == 0) {
				count++;
				A /= 2;
			}
			max[i] = count;
		} {
			int A = sc.nextInt();
			int count = 0;
			while(A % 2 == 0) {
				count++;
				A /= 2;
			}
			max[i] = count;
		} int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int count = 0; count 0 while(A % 2 == 0) {
				count++;
				A /= 2;
			} A % 2 == 0 A % 2 A 2 0 {
				count++;
				A /= 2;
			} count++ count A /= 2 A 2 max[i] = count max[i] max i count Arrays.sort(max) Arrays.sort Arrays max System.out.println(max[0]) System.out.println System.out System System.out max[0] max 0 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int[] max = new int[N];
		
		for(int i = 0; i < N; i++) {
			int A = sc.nextInt();
			int count = 0;
			while(A % 2 == 0) {
				count++;
				A /= 2;
			}
			max[i] = count;
		}
		Arrays.sort(max);
		System.out.println(max[0]);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int[] max = new int[N];
		
		for(int i = 0; i < N; i++) {
			int A = sc.nextInt();
			int count = 0;
			while(A % 2 == 0) {
				count++;
				A /= 2;
			}
			max[i] = count;
		}
		Arrays.sort(max);
		System.out.println(max[0]);
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int[] max = new int[N];
		
		for(int i = 0; i < N; i++) {
			int A = sc.nextInt();
			int count = 0;
			while(A % 2 == 0) {
				count++;
				A /= 2;
			}
			max[i] = count;
		}
		Arrays.sort(max);
		System.out.println(max[0]);
	}
}
