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];
		int n = 0;
		int c = 0;
		for(int i = 0; i < N; i++) {
			A[i] = sc.nextInt();
		}
		for(int j = 0; Math.pow(10, 9) > Math.pow(2, j); j++) {
			for(int k = 0; k < N; k++) {
				if(A[k] % 2 == 0) {
					A[k] = A[k]/2;
					c++;
				}
				if(c == N) {
					n++;
				}
			}
			c = 0 ;
		}
		System.out.println(n);
	}

} 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];
		int n = 0;
		int c = 0;
		for(int i = 0; i < N; i++) {
			A[i] = sc.nextInt();
		}
		for(int j = 0; Math.pow(10, 9) > Math.pow(2, j); j++) {
			for(int k = 0; k < N; k++) {
				if(A[k] % 2 == 0) {
					A[k] = A[k]/2;
					c++;
				}
				if(c == N) {
					n++;
				}
			}
			c = 0 ;
		}
		System.out.println(n);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int A[] = new int[N];
		int n = 0;
		int c = 0;
		for(int i = 0; i < N; i++) {
			A[i] = sc.nextInt();
		}
		for(int j = 0; Math.pow(10, 9) > Math.pow(2, j); j++) {
			for(int k = 0; k < N; k++) {
				if(A[k] % 2 == 0) {
					A[k] = A[k]/2;
					c++;
				}
				if(c == N) {
					n++;
				}
			}
			c = 0 ;
		}
		System.out.println(n);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int A[] = new int[N];
		int n = 0;
		int c = 0;
		for(int i = 0; i < N; i++) {
			A[i] = sc.nextInt();
		}
		for(int j = 0; Math.pow(10, 9) > Math.pow(2, j); j++) {
			for(int k = 0; k < N; k++) {
				if(A[k] % 2 == 0) {
					A[k] = A[k]/2;
					c++;
				}
				if(c == N) {
					n++;
				}
			}
			c = 0 ;
		}
		System.out.println(n);
	} 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 int n = 0; n 0 int c = 0; c 0 for(int i = 0; i < N; i++) {
			A[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			A[i] = sc.nextInt();
		} {
			A[i] = sc.nextInt();
		} A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc for(int j = 0; Math.pow(10, 9) > Math.pow(2, j); j++) {
			for(int k = 0; k < N; k++) {
				if(A[k] % 2 == 0) {
					A[k] = A[k]/2;
					c++;
				}
				if(c == N) {
					n++;
				}
			}
			c = 0 ;
		} int j = 0; int j = 0; j 0 Math.pow(10, 9) > Math.pow(2, j) Math.pow(10, 9) Math.pow Math 10 9 Math.pow(2, j) Math.pow Math 2 j j++ j++ j {
			for(int k = 0; k < N; k++) {
				if(A[k] % 2 == 0) {
					A[k] = A[k]/2;
					c++;
				}
				if(c == N) {
					n++;
				}
			}
			c = 0 ;
		} {
			for(int k = 0; k < N; k++) {
				if(A[k] % 2 == 0) {
					A[k] = A[k]/2;
					c++;
				}
				if(c == N) {
					n++;
				}
			}
			c = 0 ;
		} for(int k = 0; k < N; k++) {
				if(A[k] % 2 == 0) {
					A[k] = A[k]/2;
					c++;
				}
				if(c == N) {
					n++;
				}
			} int k = 0; int k = 0; k 0 k < N k N k++ k++ k {
				if(A[k] % 2 == 0) {
					A[k] = A[k]/2;
					c++;
				}
				if(c == N) {
					n++;
				}
			} {
				if(A[k] % 2 == 0) {
					A[k] = A[k]/2;
					c++;
				}
				if(c == N) {
					n++;
				}
			} if(A[k] % 2 == 0) {
					A[k] = A[k]/2;
					c++;
				} A[k] % 2 == 0 A[k] % 2 A[k] A k 2 0 {
					A[k] = A[k]/2;
					c++;
				} A[k] = A[k]/2 A[k] A k A[k]/2 A[k] A k 2 c++ c if(c == N) {
					n++;
				} c == N c N {
					n++;
				} n++ n c = 0 c 0 System.out.println(n) System.out.println System.out System System.out n 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];
		int n = 0;
		int c = 0;
		for(int i = 0; i < N; i++) {
			A[i] = sc.nextInt();
		}
		for(int j = 0; Math.pow(10, 9) > Math.pow(2, j); j++) {
			for(int k = 0; k < N; k++) {
				if(A[k] % 2 == 0) {
					A[k] = A[k]/2;
					c++;
				}
				if(c == N) {
					n++;
				}
			}
			c = 0 ;
		}
		System.out.println(n);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int A[] = new int[N];
		int n = 0;
		int c = 0;
		for(int i = 0; i < N; i++) {
			A[i] = sc.nextInt();
		}
		for(int j = 0; Math.pow(10, 9) > Math.pow(2, j); j++) {
			for(int k = 0; k < N; k++) {
				if(A[k] % 2 == 0) {
					A[k] = A[k]/2;
					c++;
				}
				if(c == N) {
					n++;
				}
			}
			c = 0 ;
		}
		System.out.println(n);
	}

} 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];
		int n = 0;
		int c = 0;
		for(int i = 0; i < N; i++) {
			A[i] = sc.nextInt();
		}
		for(int j = 0; Math.pow(10, 9) > Math.pow(2, j); j++) {
			for(int k = 0; k < N; k++) {
				if(A[k] % 2 == 0) {
					A[k] = A[k]/2;
					c++;
				}
				if(c == N) {
					n++;
				}
			}
			c = 0 ;
		}
		System.out.println(n);
	}

}
