
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int[] A = new int[N];
		boolean finish = false;
		int count = 0;
		for(int i = 0; i < N; i++) {
			A[i] = scan.nextInt();
		}
		while(true) {
			for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					finish = true;
					break;
				}
			}
			if(finish) {
				break;
			} else {
				count++;
			}
		}
		System.out.println(count);
		scan.close();

	}

} 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[] A = new int[N];
		boolean finish = false;
		int count = 0;
		for(int i = 0; i < N; i++) {
			A[i] = scan.nextInt();
		}
		while(true) {
			for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					finish = true;
					break;
				}
			}
			if(finish) {
				break;
			} else {
				count++;
			}
		}
		System.out.println(count);
		scan.close();

	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int[] A = new int[N];
		boolean finish = false;
		int count = 0;
		for(int i = 0; i < N; i++) {
			A[i] = scan.nextInt();
		}
		while(true) {
			for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					finish = true;
					break;
				}
			}
			if(finish) {
				break;
			} else {
				count++;
			}
		}
		System.out.println(count);
		scan.close();

	} main {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int[] A = new int[N];
		boolean finish = false;
		int count = 0;
		for(int i = 0; i < N; i++) {
			A[i] = scan.nextInt();
		}
		while(true) {
			for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					finish = true;
					break;
				}
			}
			if(finish) {
				break;
			} else {
				count++;
			}
		}
		System.out.println(count);
		scan.close();

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int[] A = new int[N]; A new int[N] N boolean finish = false; finish false int count = 0; count 0 for(int i = 0; i < N; i++) {
			A[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			A[i] = scan.nextInt();
		} {
			A[i] = scan.nextInt();
		} A[i] = scan.nextInt() A[i] A i scan.nextInt() scan.nextInt scan while(true) {
			for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					finish = true;
					break;
				}
			}
			if(finish) {
				break;
			} else {
				count++;
			}
		} true {
			for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					finish = true;
					break;
				}
			}
			if(finish) {
				break;
			} else {
				count++;
			}
		} for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					finish = true;
					break;
				}
			} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
				if(A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					finish = true;
					break;
				}
			} {
				if(A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					finish = true;
					break;
				}
			} if(A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					finish = true;
					break;
				} A[i] % 2 == 0 A[i] % 2 A[i] A i 2 0 {
					A[i] = A[i] / 2;
				} A[i] = A[i] / 2 A[i] A i A[i] / 2 A[i] A i 2 {
					finish = true;
					break;
				} finish = true finish true break; if(finish) {
				break;
			} else {
				count++;
			} finish {
				break;
			} break; {
				count++;
			} count++ count System.out.println(count) System.out.println System.out System System.out count scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int[] A = new int[N];
		boolean finish = false;
		int count = 0;
		for(int i = 0; i < N; i++) {
			A[i] = scan.nextInt();
		}
		while(true) {
			for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					finish = true;
					break;
				}
			}
			if(finish) {
				break;
			} else {
				count++;
			}
		}
		System.out.println(count);
		scan.close();

	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int[] A = new int[N];
		boolean finish = false;
		int count = 0;
		for(int i = 0; i < N; i++) {
			A[i] = scan.nextInt();
		}
		while(true) {
			for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					finish = true;
					break;
				}
			}
			if(finish) {
				break;
			} else {
				count++;
			}
		}
		System.out.println(count);
		scan.close();

	}

} 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[] A = new int[N];
		boolean finish = false;
		int count = 0;
		for(int i = 0; i < N; i++) {
			A[i] = scan.nextInt();
		}
		while(true) {
			for(int i = 0; i < N; i++) {
				if(A[i] % 2 == 0) {
					A[i] = A[i] / 2;
				} else {
					finish = true;
					break;
				}
			}
			if(finish) {
				break;
			} else {
				count++;
			}
		}
		System.out.println(count);
		scan.close();

	}

}
