import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int inLength;
		inLength = sc.nextInt();
		
		long[] input = new long[inLength];
		for(int i =0 ; i < inLength;i++) {
			input[i] = sc.nextInt();
		}
		int result = 0;
		boolean flg = false;
		while(flg == false) {
			for(int j =0 ; j < inLength;j++) {
				if(input[j] % 2 == 1) {
					flg = true;
					break;
				}
				input[j] = input[j] / 2;
				if(input[j] == 0) {
					flg = true;
				}
				
			}
			if(flg == false) {
				result++;
			}
		}
		
		System.out.println(result);

	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int inLength;
		inLength = sc.nextInt();
		
		long[] input = new long[inLength];
		for(int i =0 ; i < inLength;i++) {
			input[i] = sc.nextInt();
		}
		int result = 0;
		boolean flg = false;
		while(flg == false) {
			for(int j =0 ; j < inLength;j++) {
				if(input[j] % 2 == 1) {
					flg = true;
					break;
				}
				input[j] = input[j] / 2;
				if(input[j] == 0) {
					flg = true;
				}
				
			}
			if(flg == false) {
				result++;
			}
		}
		
		System.out.println(result);

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int inLength;
		inLength = sc.nextInt();
		
		long[] input = new long[inLength];
		for(int i =0 ; i < inLength;i++) {
			input[i] = sc.nextInt();
		}
		int result = 0;
		boolean flg = false;
		while(flg == false) {
			for(int j =0 ; j < inLength;j++) {
				if(input[j] % 2 == 1) {
					flg = true;
					break;
				}
				input[j] = input[j] / 2;
				if(input[j] == 0) {
					flg = true;
				}
				
			}
			if(flg == false) {
				result++;
			}
		}
		
		System.out.println(result);

	} main {
		Scanner sc = new Scanner(System.in);
		int inLength;
		inLength = sc.nextInt();
		
		long[] input = new long[inLength];
		for(int i =0 ; i < inLength;i++) {
			input[i] = sc.nextInt();
		}
		int result = 0;
		boolean flg = false;
		while(flg == false) {
			for(int j =0 ; j < inLength;j++) {
				if(input[j] % 2 == 1) {
					flg = true;
					break;
				}
				input[j] = input[j] / 2;
				if(input[j] == 0) {
					flg = true;
				}
				
			}
			if(flg == false) {
				result++;
			}
		}
		
		System.out.println(result);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int inLength; inLength inLength = sc.nextInt() inLength sc.nextInt() sc.nextInt sc long[] input = new long[inLength]; input new long[inLength] inLength for(int i =0 ; i < inLength;i++) {
			input[i] = sc.nextInt();
		} int i =0 ; int i =0 ; i 0 i < inLength i inLength i++ i++ i {
			input[i] = sc.nextInt();
		} {
			input[i] = sc.nextInt();
		} input[i] = sc.nextInt() input[i] input i sc.nextInt() sc.nextInt sc int result = 0; result 0 boolean flg = false; flg false while(flg == false) {
			for(int j =0 ; j < inLength;j++) {
				if(input[j] % 2 == 1) {
					flg = true;
					break;
				}
				input[j] = input[j] / 2;
				if(input[j] == 0) {
					flg = true;
				}
				
			}
			if(flg == false) {
				result++;
			}
		} flg == false flg false {
			for(int j =0 ; j < inLength;j++) {
				if(input[j] % 2 == 1) {
					flg = true;
					break;
				}
				input[j] = input[j] / 2;
				if(input[j] == 0) {
					flg = true;
				}
				
			}
			if(flg == false) {
				result++;
			}
		} for(int j =0 ; j < inLength;j++) {
				if(input[j] % 2 == 1) {
					flg = true;
					break;
				}
				input[j] = input[j] / 2;
				if(input[j] == 0) {
					flg = true;
				}
				
			} int j =0 ; int j =0 ; j 0 j < inLength j inLength j++ j++ j {
				if(input[j] % 2 == 1) {
					flg = true;
					break;
				}
				input[j] = input[j] / 2;
				if(input[j] == 0) {
					flg = true;
				}
				
			} {
				if(input[j] % 2 == 1) {
					flg = true;
					break;
				}
				input[j] = input[j] / 2;
				if(input[j] == 0) {
					flg = true;
				}
				
			} if(input[j] % 2 == 1) {
					flg = true;
					break;
				} input[j] % 2 == 1 input[j] % 2 input[j] input j 2 1 {
					flg = true;
					break;
				} flg = true flg true break; input[j] = input[j] / 2 input[j] input j input[j] / 2 input[j] input j 2 if(input[j] == 0) {
					flg = true;
				} input[j] == 0 input[j] input j 0 {
					flg = true;
				} flg = true flg true if(flg == false) {
				result++;
			} flg == false flg false {
				result++;
			} result++ result System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int inLength;
		inLength = sc.nextInt();
		
		long[] input = new long[inLength];
		for(int i =0 ; i < inLength;i++) {
			input[i] = sc.nextInt();
		}
		int result = 0;
		boolean flg = false;
		while(flg == false) {
			for(int j =0 ; j < inLength;j++) {
				if(input[j] % 2 == 1) {
					flg = true;
					break;
				}
				input[j] = input[j] / 2;
				if(input[j] == 0) {
					flg = true;
				}
				
			}
			if(flg == false) {
				result++;
			}
		}
		
		System.out.println(result);

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int inLength;
		inLength = sc.nextInt();
		
		long[] input = new long[inLength];
		for(int i =0 ; i < inLength;i++) {
			input[i] = sc.nextInt();
		}
		int result = 0;
		boolean flg = false;
		while(flg == false) {
			for(int j =0 ; j < inLength;j++) {
				if(input[j] % 2 == 1) {
					flg = true;
					break;
				}
				input[j] = input[j] / 2;
				if(input[j] == 0) {
					flg = true;
				}
				
			}
			if(flg == false) {
				result++;
			}
		}
		
		System.out.println(result);

	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int inLength;
		inLength = sc.nextInt();
		
		long[] input = new long[inLength];
		for(int i =0 ; i < inLength;i++) {
			input[i] = sc.nextInt();
		}
		int result = 0;
		boolean flg = false;
		while(flg == false) {
			for(int j =0 ; j < inLength;j++) {
				if(input[j] % 2 == 1) {
					flg = true;
					break;
				}
				input[j] = input[j] / 2;
				if(input[j] == 0) {
					flg = true;
				}
				
			}
			if(flg == false) {
				result++;
			}
		}
		
		System.out.println(result);

	}

}