import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			a[i] = Integer.parseInt(sc.next());
		}

		int count = solve(a);

		System.out.println(count);
		sc.close();
	}

	public static int solve(int[] a) {
		boolean flag = true;
		int count = 0;
		while (flag) {
			for (int i = 0; i < a.length; i++) {
				if (a[i] % 2 == 1) {
					flag = false;
				}
			}
			if (flag) {
				for (int i = 0; i < a.length; i++) {
					a[i] /= 2;
				}
				count++;
			}
		}
		return count;
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			a[i] = Integer.parseInt(sc.next());
		}

		int count = solve(a);

		System.out.println(count);
		sc.close();
	}

	public static int solve(int[] a) {
		boolean flag = true;
		int count = 0;
		while (flag) {
			for (int i = 0; i < a.length; i++) {
				if (a[i] % 2 == 1) {
					flag = false;
				}
			}
			if (flag) {
				for (int i = 0; i < a.length; i++) {
					a[i] /= 2;
				}
				count++;
			}
		}
		return count;
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			a[i] = Integer.parseInt(sc.next());
		}

		int count = solve(a);

		System.out.println(count);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			a[i] = Integer.parseInt(sc.next());
		}

		int count = solve(a);

		System.out.println(count);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] a = new int[n]; a new int[n] n for (int i = 0; i < n; i++) {
			a[i] = Integer.parseInt(sc.next());
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			a[i] = Integer.parseInt(sc.next());
		} {
			a[i] = Integer.parseInt(sc.next());
		} a[i] = Integer.parseInt(sc.next()) a[i] a i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int count = solve(a); count solve(a) solve a System.out.println(count) System.out.println System.out System System.out count sc.close() sc.close sc String[] args args public static int solve(int[] a) {
		boolean flag = true;
		int count = 0;
		while (flag) {
			for (int i = 0; i < a.length; i++) {
				if (a[i] % 2 == 1) {
					flag = false;
				}
			}
			if (flag) {
				for (int i = 0; i < a.length; i++) {
					a[i] /= 2;
				}
				count++;
			}
		}
		return count;
	} solve {
		boolean flag = true;
		int count = 0;
		while (flag) {
			for (int i = 0; i < a.length; i++) {
				if (a[i] % 2 == 1) {
					flag = false;
				}
			}
			if (flag) {
				for (int i = 0; i < a.length; i++) {
					a[i] /= 2;
				}
				count++;
			}
		}
		return count;
	} boolean flag = true; flag true int count = 0; count 0 while (flag) {
			for (int i = 0; i < a.length; i++) {
				if (a[i] % 2 == 1) {
					flag = false;
				}
			}
			if (flag) {
				for (int i = 0; i < a.length; i++) {
					a[i] /= 2;
				}
				count++;
			}
		} flag {
			for (int i = 0; i < a.length; i++) {
				if (a[i] % 2 == 1) {
					flag = false;
				}
			}
			if (flag) {
				for (int i = 0; i < a.length; i++) {
					a[i] /= 2;
				}
				count++;
			}
		} for (int i = 0; i < a.length; i++) {
				if (a[i] % 2 == 1) {
					flag = false;
				}
			} int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i {
				if (a[i] % 2 == 1) {
					flag = false;
				}
			} {
				if (a[i] % 2 == 1) {
					flag = false;
				}
			} if (a[i] % 2 == 1) {
					flag = false;
				} a[i] % 2 == 1 a[i] % 2 a[i] a i 2 1 {
					flag = false;
				} flag = false flag false if (flag) {
				for (int i = 0; i < a.length; i++) {
					a[i] /= 2;
				}
				count++;
			} flag {
				for (int i = 0; i < a.length; i++) {
					a[i] /= 2;
				}
				count++;
			} for (int i = 0; i < a.length; i++) {
					a[i] /= 2;
				} int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i {
					a[i] /= 2;
				} {
					a[i] /= 2;
				} a[i] /= 2 a[i] a i 2 count++ count return count; count int[] a a public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			a[i] = Integer.parseInt(sc.next());
		}

		int count = solve(a);

		System.out.println(count);
		sc.close();
	}

	public static int solve(int[] a) {
		boolean flag = true;
		int count = 0;
		while (flag) {
			for (int i = 0; i < a.length; i++) {
				if (a[i] % 2 == 1) {
					flag = false;
				}
			}
			if (flag) {
				for (int i = 0; i < a.length; i++) {
					a[i] /= 2;
				}
				count++;
			}
		}
		return count;
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			a[i] = Integer.parseInt(sc.next());
		}

		int count = solve(a);

		System.out.println(count);
		sc.close();
	}

	public static int solve(int[] a) {
		boolean flag = true;
		int count = 0;
		while (flag) {
			for (int i = 0; i < a.length; i++) {
				if (a[i] % 2 == 1) {
					flag = false;
				}
			}
			if (flag) {
				for (int i = 0; i < a.length; i++) {
					a[i] /= 2;
				}
				count++;
			}
		}
		return count;
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			a[i] = Integer.parseInt(sc.next());
		}

		int count = solve(a);

		System.out.println(count);
		sc.close();
	}

	public static int solve(int[] a) {
		boolean flag = true;
		int count = 0;
		while (flag) {
			for (int i = 0; i < a.length; i++) {
				if (a[i] % 2 == 1) {
					flag = false;
				}
			}
			if (flag) {
				for (int i = 0; i < a.length; i++) {
					a[i] /= 2;
				}
				count++;
			}
		}
		return count;
	}

}