import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int min = Integer.MAX_VALUE;
		for(int i = 0; i < n; i++){
			int count = 0;
			Long x = scan.nextLong();
			while((x % 2)==0){
				x /= 2;
				count++;
			}
			
			if(count <= min)min = count;
		}
		System.out.println(min);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int min = Integer.MAX_VALUE;
		for(int i = 0; i < n; i++){
			int count = 0;
			Long x = scan.nextLong();
			while((x % 2)==0){
				x /= 2;
				count++;
			}
			
			if(count <= min)min = count;
		}
		System.out.println(min);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int min = Integer.MAX_VALUE;
		for(int i = 0; i < n; i++){
			int count = 0;
			Long x = scan.nextLong();
			while((x % 2)==0){
				x /= 2;
				count++;
			}
			
			if(count <= min)min = count;
		}
		System.out.println(min);
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int min = Integer.MAX_VALUE;
		for(int i = 0; i < n; i++){
			int count = 0;
			Long x = scan.nextLong();
			while((x % 2)==0){
				x /= 2;
				count++;
			}
			
			if(count <= min)min = count;
		}
		System.out.println(min);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i = 0; i < n; i++){
			int count = 0;
			Long x = scan.nextLong();
			while((x % 2)==0){
				x /= 2;
				count++;
			}
			
			if(count <= min)min = count;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int count = 0;
			Long x = scan.nextLong();
			while((x % 2)==0){
				x /= 2;
				count++;
			}
			
			if(count <= min)min = count;
		} {
			int count = 0;
			Long x = scan.nextLong();
			while((x % 2)==0){
				x /= 2;
				count++;
			}
			
			if(count <= min)min = count;
		} int count = 0; count 0 Long x = scan.nextLong(); x scan.nextLong() scan.nextLong scan while((x % 2)==0){
				x /= 2;
				count++;
			} (x % 2)==0 (x % 2) x 2 0 {
				x /= 2;
				count++;
			} x /= 2 x 2 count++ count if(count <= min)min = count; count <= min count min min = count 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 scan = new Scanner(System.in);
		int n = scan.nextInt();
		int min = Integer.MAX_VALUE;
		for(int i = 0; i < n; i++){
			int count = 0;
			Long x = scan.nextLong();
			while((x % 2)==0){
				x /= 2;
				count++;
			}
			
			if(count <= min)min = count;
		}
		System.out.println(min);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int min = Integer.MAX_VALUE;
		for(int i = 0; i < n; i++){
			int count = 0;
			Long x = scan.nextLong();
			while((x % 2)==0){
				x /= 2;
				count++;
			}
			
			if(count <= min)min = count;
		}
		System.out.println(min);
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int min = Integer.MAX_VALUE;
		for(int i = 0; i < n; i++){
			int count = 0;
			Long x = scan.nextLong();
			while((x % 2)==0){
				x /= 2;
				count++;
			}
			
			if(count <= min)min = count;
		}
		System.out.println(min);
	}
}