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