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

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		List<Integer> list = new ArrayList<Integer>();

		int count = 0;
		boolean saisyo = true;
		for (int i = 0; i < n; i++) {
			int add = scan.nextInt();
			list.add(add);
			if(list.get(i)%2==1) {
				saisyo=false;
				break;
			}
		}

			if(saisyo==false) {
				System.out.println(0);
			}else {

				for(int i=0;;i++) {
					//if(saisyo==true) {
					int temp=list.get(i);
					if(temp%2==0) {
					temp = temp/2;
					list.add(temp);
					}else {

						//saisyo=false;
						break;
				}



			}

				count=list.size()/n-1;
				//System.out.println(list);
				System.out.println(count);

			}
	}
} 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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		List<Integer> list = new ArrayList<Integer>();

		int count = 0;
		boolean saisyo = true;
		for (int i = 0; i < n; i++) {
			int add = scan.nextInt();
			list.add(add);
			if(list.get(i)%2==1) {
				saisyo=false;
				break;
			}
		}

			if(saisyo==false) {
				System.out.println(0);
			}else {

				for(int i=0;;i++) {
					//if(saisyo==true) {
					int temp=list.get(i);
					if(temp%2==0) {
					temp = temp/2;
					list.add(temp);
					}else {

						//saisyo=false;
						break;
				}



			}

				count=list.size()/n-1;
				//System.out.println(list);
				System.out.println(count);

			}
	}
} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		List<Integer> list = new ArrayList<Integer>();

		int count = 0;
		boolean saisyo = true;
		for (int i = 0; i < n; i++) {
			int add = scan.nextInt();
			list.add(add);
			if(list.get(i)%2==1) {
				saisyo=false;
				break;
			}
		}

			if(saisyo==false) {
				System.out.println(0);
			}else {

				for(int i=0;;i++) {
					//if(saisyo==true) {
					int temp=list.get(i);
					if(temp%2==0) {
					temp = temp/2;
					list.add(temp);
					}else {

						//saisyo=false;
						break;
				}



			}

				count=list.size()/n-1;
				//System.out.println(list);
				System.out.println(count);

			}
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		List<Integer> list = new ArrayList<Integer>();

		int count = 0;
		boolean saisyo = true;
		for (int i = 0; i < n; i++) {
			int add = scan.nextInt();
			list.add(add);
			if(list.get(i)%2==1) {
				saisyo=false;
				break;
			}
		}

			if(saisyo==false) {
				System.out.println(0);
			}else {

				for(int i=0;;i++) {
					//if(saisyo==true) {
					int temp=list.get(i);
					if(temp%2==0) {
					temp = temp/2;
					list.add(temp);
					}else {

						//saisyo=false;
						break;
				}



			}

				count=list.size()/n-1;
				//System.out.println(list);
				System.out.println(count);

			}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() int count = 0; count 0 boolean saisyo = true; saisyo true for (int i = 0; i < n; i++) {
			int add = scan.nextInt();
			list.add(add);
			if(list.get(i)%2==1) {
				saisyo=false;
				break;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int add = scan.nextInt();
			list.add(add);
			if(list.get(i)%2==1) {
				saisyo=false;
				break;
			}
		} {
			int add = scan.nextInt();
			list.add(add);
			if(list.get(i)%2==1) {
				saisyo=false;
				break;
			}
		} int add = scan.nextInt(); add scan.nextInt() scan.nextInt scan list.add(add) list.add list add if(list.get(i)%2==1) {
				saisyo=false;
				break;
			} list.get(i)%2==1 list.get(i)%2 list.get(i) list.get list i 2 1 {
				saisyo=false;
				break;
			} saisyo=false saisyo false break; if(saisyo==false) {
				System.out.println(0);
			}else {

				for(int i=0;;i++) {
					//if(saisyo==true) {
					int temp=list.get(i);
					if(temp%2==0) {
					temp = temp/2;
					list.add(temp);
					}else {

						//saisyo=false;
						break;
				}



			}

				count=list.size()/n-1;
				//System.out.println(list);
				System.out.println(count);

			} saisyo==false saisyo false {
				System.out.println(0);
			} System.out.println(0) System.out.println System.out System System.out 0 {

				for(int i=0;;i++) {
					//if(saisyo==true) {
					int temp=list.get(i);
					if(temp%2==0) {
					temp = temp/2;
					list.add(temp);
					}else {

						//saisyo=false;
						break;
				}



			}

				count=list.size()/n-1;
				//System.out.println(list);
				System.out.println(count);

			} for(int i=0;;i++) {
					//if(saisyo==true) {
					int temp=list.get(i);
					if(temp%2==0) {
					temp = temp/2;
					list.add(temp);
					}else {

						//saisyo=false;
						break;
				}



			} int i=0; int i=0; i 0 i++ i++ i {
					//if(saisyo==true) {
					int temp=list.get(i);
					if(temp%2==0) {
					temp = temp/2;
					list.add(temp);
					}else {

						//saisyo=false;
						break;
				}



			} {
					//if(saisyo==true) {
					int temp=list.get(i);
					if(temp%2==0) {
					temp = temp/2;
					list.add(temp);
					}else {

						//saisyo=false;
						break;
				}



			} int temp=list.get(i); temp list.get(i) list.get list i if(temp%2==0) {
					temp = temp/2;
					list.add(temp);
					}else {

						//saisyo=false;
						break;
				} temp%2==0 temp%2 temp 2 0 {
					temp = temp/2;
					list.add(temp);
					} temp = temp/2 temp temp/2 temp 2 list.add(temp) list.add list temp {

						//saisyo=false;
						break;
				} break; count=list.size()/n-1 count list.size()/n-1 list.size()/n list.size() list.size list n 1 System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		List<Integer> list = new ArrayList<Integer>();

		int count = 0;
		boolean saisyo = true;
		for (int i = 0; i < n; i++) {
			int add = scan.nextInt();
			list.add(add);
			if(list.get(i)%2==1) {
				saisyo=false;
				break;
			}
		}

			if(saisyo==false) {
				System.out.println(0);
			}else {

				for(int i=0;;i++) {
					//if(saisyo==true) {
					int temp=list.get(i);
					if(temp%2==0) {
					temp = temp/2;
					list.add(temp);
					}else {

						//saisyo=false;
						break;
				}



			}

				count=list.size()/n-1;
				//System.out.println(list);
				System.out.println(count);

			}
	}
} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		List<Integer> list = new ArrayList<Integer>();

		int count = 0;
		boolean saisyo = true;
		for (int i = 0; i < n; i++) {
			int add = scan.nextInt();
			list.add(add);
			if(list.get(i)%2==1) {
				saisyo=false;
				break;
			}
		}

			if(saisyo==false) {
				System.out.println(0);
			}else {

				for(int i=0;;i++) {
					//if(saisyo==true) {
					int temp=list.get(i);
					if(temp%2==0) {
					temp = temp/2;
					list.add(temp);
					}else {

						//saisyo=false;
						break;
				}



			}

				count=list.size()/n-1;
				//System.out.println(list);
				System.out.println(count);

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

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		List<Integer> list = new ArrayList<Integer>();

		int count = 0;
		boolean saisyo = true;
		for (int i = 0; i < n; i++) {
			int add = scan.nextInt();
			list.add(add);
			if(list.get(i)%2==1) {
				saisyo=false;
				break;
			}
		}

			if(saisyo==false) {
				System.out.println(0);
			}else {

				for(int i=0;;i++) {
					//if(saisyo==true) {
					int temp=list.get(i);
					if(temp%2==0) {
					temp = temp/2;
					list.add(temp);
					}else {

						//saisyo=false;
						break;
				}



			}

				count=list.size()/n-1;
				//System.out.println(list);
				System.out.println(count);

			}
	}
}