import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		System.out.println(jadge());
	}

	public static int jadge() {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		for(int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		int count = 0;
		int jadge = 0;

		while(true) {
			for(int j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] /= 2;
					jadge++;
				} else {
					return count;
				}
			}
			if(jadge == n) {
				count++;
			}
			jadge = 0;
		}
	}

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

	public static void main(String[] args) {
		System.out.println(jadge());
	}

	public static int jadge() {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		for(int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		int count = 0;
		int jadge = 0;

		while(true) {
			for(int j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] /= 2;
					jadge++;
				} else {
					return count;
				}
			}
			if(jadge == n) {
				count++;
			}
			jadge = 0;
		}
	}

} Main public static void main(String[] args) {
		System.out.println(jadge());
	} main {
		System.out.println(jadge());
	} System.out.println(jadge()) System.out.println System.out System System.out jadge() jadge String[] args args public static int jadge() {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		for(int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		int count = 0;
		int jadge = 0;

		while(true) {
			for(int j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] /= 2;
					jadge++;
				} else {
					return count;
				}
			}
			if(jadge == n) {
				count++;
			}
			jadge = 0;
		}
	} jadge {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		for(int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		int count = 0;
		int jadge = 0;

		while(true) {
			for(int j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] /= 2;
					jadge++;
				} else {
					return count;
				}
			}
			if(jadge == n) {
				count++;
			}
			jadge = 0;
		}
	} 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 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 sc.close() sc.close sc int count = 0; count 0 int jadge = 0; jadge 0 while(true) {
			for(int j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] /= 2;
					jadge++;
				} else {
					return count;
				}
			}
			if(jadge == n) {
				count++;
			}
			jadge = 0;
		} true {
			for(int j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] /= 2;
					jadge++;
				} else {
					return count;
				}
			}
			if(jadge == n) {
				count++;
			}
			jadge = 0;
		} for(int j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] /= 2;
					jadge++;
				} else {
					return count;
				}
			} int j = 0; int j = 0; j 0 j < n j n j++ j++ j {
				if(a[j] % 2 == 0) {
					a[j] /= 2;
					jadge++;
				} else {
					return count;
				}
			} {
				if(a[j] % 2 == 0) {
					a[j] /= 2;
					jadge++;
				} else {
					return count;
				}
			} if(a[j] % 2 == 0) {
					a[j] /= 2;
					jadge++;
				} else {
					return count;
				} a[j] % 2 == 0 a[j] % 2 a[j] a j 2 0 {
					a[j] /= 2;
					jadge++;
				} a[j] /= 2 a[j] a j 2 jadge++ jadge {
					return count;
				} return count; count if(jadge == n) {
				count++;
			} jadge == n jadge n {
				count++;
			} count++ count jadge = 0 jadge 0 public class Main {

	public static void main(String[] args) {
		System.out.println(jadge());
	}

	public static int jadge() {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		for(int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		int count = 0;
		int jadge = 0;

		while(true) {
			for(int j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] /= 2;
					jadge++;
				} else {
					return count;
				}
			}
			if(jadge == n) {
				count++;
			}
			jadge = 0;
		}
	}

} public class Main {

	public static void main(String[] args) {
		System.out.println(jadge());
	}

	public static int jadge() {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		for(int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		int count = 0;
		int jadge = 0;

		while(true) {
			for(int j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] /= 2;
					jadge++;
				} else {
					return count;
				}
			}
			if(jadge == n) {
				count++;
			}
			jadge = 0;
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		System.out.println(jadge());
	}

	public static int jadge() {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		for(int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		int count = 0;
		int jadge = 0;

		while(true) {
			for(int j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] /= 2;
					jadge++;
				} else {
					return count;
				}
			}
			if(jadge == n) {
				count++;
			}
			jadge = 0;
		}
	}

}