import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		List<Integer> list = new ArrayList<Integer>();

		int resultCount = 0;

		for (int i = 0; i < n; i++) {
			final int num = sc.nextInt();
			if (num % 2 == 0) {
				list.add(num);
			} else {
				break;
			}
		}

		if (list.size() != n) {
			System.out.print(resultCount);
			return;
		}

		boolean continueFlag = true;
		while (continueFlag) {
			int count = 0;
			for (int j = 0; j < n; j++) {
				int num = list.get(j);
				if (num % 2 == 0) {
					list.set(j, num / 2);
					count++;
				} else {
					continueFlag = false;
					break;
				}
			}

			if (count == n) {
				resultCount++;
			}
		}

		System.out.print(resultCount);

		sc.close();

	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		List<Integer> list = new ArrayList<Integer>();

		int resultCount = 0;

		for (int i = 0; i < n; i++) {
			final int num = sc.nextInt();
			if (num % 2 == 0) {
				list.add(num);
			} else {
				break;
			}
		}

		if (list.size() != n) {
			System.out.print(resultCount);
			return;
		}

		boolean continueFlag = true;
		while (continueFlag) {
			int count = 0;
			for (int j = 0; j < n; j++) {
				int num = list.get(j);
				if (num % 2 == 0) {
					list.set(j, num / 2);
					count++;
				} else {
					continueFlag = false;
					break;
				}
			}

			if (count == n) {
				resultCount++;
			}
		}

		System.out.print(resultCount);

		sc.close();

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		List<Integer> list = new ArrayList<Integer>();

		int resultCount = 0;

		for (int i = 0; i < n; i++) {
			final int num = sc.nextInt();
			if (num % 2 == 0) {
				list.add(num);
			} else {
				break;
			}
		}

		if (list.size() != n) {
			System.out.print(resultCount);
			return;
		}

		boolean continueFlag = true;
		while (continueFlag) {
			int count = 0;
			for (int j = 0; j < n; j++) {
				int num = list.get(j);
				if (num % 2 == 0) {
					list.set(j, num / 2);
					count++;
				} else {
					continueFlag = false;
					break;
				}
			}

			if (count == n) {
				resultCount++;
			}
		}

		System.out.print(resultCount);

		sc.close();

	} main {
		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		List<Integer> list = new ArrayList<Integer>();

		int resultCount = 0;

		for (int i = 0; i < n; i++) {
			final int num = sc.nextInt();
			if (num % 2 == 0) {
				list.add(num);
			} else {
				break;
			}
		}

		if (list.size() != n) {
			System.out.print(resultCount);
			return;
		}

		boolean continueFlag = true;
		while (continueFlag) {
			int count = 0;
			for (int j = 0; j < n; j++) {
				int num = list.get(j);
				if (num % 2 == 0) {
					list.set(j, num / 2);
					count++;
				} else {
					continueFlag = false;
					break;
				}
			}

			if (count == n) {
				resultCount++;
			}
		}

		System.out.print(resultCount);

		sc.close();

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() int resultCount = 0; resultCount 0 for (int i = 0; i < n; i++) {
			final int num = sc.nextInt();
			if (num % 2 == 0) {
				list.add(num);
			} else {
				break;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			final int num = sc.nextInt();
			if (num % 2 == 0) {
				list.add(num);
			} else {
				break;
			}
		} {
			final int num = sc.nextInt();
			if (num % 2 == 0) {
				list.add(num);
			} else {
				break;
			}
		} final int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc if (num % 2 == 0) {
				list.add(num);
			} else {
				break;
			} num % 2 == 0 num % 2 num 2 0 {
				list.add(num);
			} list.add(num) list.add list num {
				break;
			} break; if (list.size() != n) {
			System.out.print(resultCount);
			return;
		} list.size() != n list.size() list.size list n {
			System.out.print(resultCount);
			return;
		} System.out.print(resultCount) System.out.print System.out System System.out resultCount return; boolean continueFlag = true; continueFlag true while (continueFlag) {
			int count = 0;
			for (int j = 0; j < n; j++) {
				int num = list.get(j);
				if (num % 2 == 0) {
					list.set(j, num / 2);
					count++;
				} else {
					continueFlag = false;
					break;
				}
			}

			if (count == n) {
				resultCount++;
			}
		} continueFlag {
			int count = 0;
			for (int j = 0; j < n; j++) {
				int num = list.get(j);
				if (num % 2 == 0) {
					list.set(j, num / 2);
					count++;
				} else {
					continueFlag = false;
					break;
				}
			}

			if (count == n) {
				resultCount++;
			}
		} int count = 0; count 0 for (int j = 0; j < n; j++) {
				int num = list.get(j);
				if (num % 2 == 0) {
					list.set(j, num / 2);
					count++;
				} else {
					continueFlag = false;
					break;
				}
			} int j = 0; int j = 0; j 0 j < n j n j++ j++ j {
				int num = list.get(j);
				if (num % 2 == 0) {
					list.set(j, num / 2);
					count++;
				} else {
					continueFlag = false;
					break;
				}
			} {
				int num = list.get(j);
				if (num % 2 == 0) {
					list.set(j, num / 2);
					count++;
				} else {
					continueFlag = false;
					break;
				}
			} int num = list.get(j); num list.get(j) list.get list j if (num % 2 == 0) {
					list.set(j, num / 2);
					count++;
				} else {
					continueFlag = false;
					break;
				} num % 2 == 0 num % 2 num 2 0 {
					list.set(j, num / 2);
					count++;
				} list.set(j, num / 2) list.set list j num / 2 num 2 count++ count {
					continueFlag = false;
					break;
				} continueFlag = false continueFlag false break; if (count == n) {
				resultCount++;
			} count == n count n {
				resultCount++;
			} resultCount++ resultCount System.out.print(resultCount) System.out.print System.out System System.out resultCount sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		List<Integer> list = new ArrayList<Integer>();

		int resultCount = 0;

		for (int i = 0; i < n; i++) {
			final int num = sc.nextInt();
			if (num % 2 == 0) {
				list.add(num);
			} else {
				break;
			}
		}

		if (list.size() != n) {
			System.out.print(resultCount);
			return;
		}

		boolean continueFlag = true;
		while (continueFlag) {
			int count = 0;
			for (int j = 0; j < n; j++) {
				int num = list.get(j);
				if (num % 2 == 0) {
					list.set(j, num / 2);
					count++;
				} else {
					continueFlag = false;
					break;
				}
			}

			if (count == n) {
				resultCount++;
			}
		}

		System.out.print(resultCount);

		sc.close();

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		List<Integer> list = new ArrayList<Integer>();

		int resultCount = 0;

		for (int i = 0; i < n; i++) {
			final int num = sc.nextInt();
			if (num % 2 == 0) {
				list.add(num);
			} else {
				break;
			}
		}

		if (list.size() != n) {
			System.out.print(resultCount);
			return;
		}

		boolean continueFlag = true;
		while (continueFlag) {
			int count = 0;
			for (int j = 0; j < n; j++) {
				int num = list.get(j);
				if (num % 2 == 0) {
					list.set(j, num / 2);
					count++;
				} else {
					continueFlag = false;
					break;
				}
			}

			if (count == n) {
				resultCount++;
			}
		}

		System.out.print(resultCount);

		sc.close();

	}

} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		List<Integer> list = new ArrayList<Integer>();

		int resultCount = 0;

		for (int i = 0; i < n; i++) {
			final int num = sc.nextInt();
			if (num % 2 == 0) {
				list.add(num);
			} else {
				break;
			}
		}

		if (list.size() != n) {
			System.out.print(resultCount);
			return;
		}

		boolean continueFlag = true;
		while (continueFlag) {
			int count = 0;
			for (int j = 0; j < n; j++) {
				int num = list.get(j);
				if (num % 2 == 0) {
					list.set(j, num / 2);
					count++;
				} else {
					continueFlag = false;
					break;
				}
			}

			if (count == n) {
				resultCount++;
			}
		}

		System.out.print(resultCount);

		sc.close();

	}

}
