import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			int num = Integer.parseInt(br.readLine());
			int calculationCount = 0;
			int[] intArr;
			boolean isEvenNumber = true;

			String[] stringArr = br.readLine().split(" ");
			intArr = new int[num];

			for (int i = 0; i < num; i++) {
				intArr[i] = Integer.parseInt(stringArr[i]);
			}

			while (true) {
				for (int i = 0; i < num; i++) {
					if (intArr[i] % 2 == 0) {
						calculationCount++;
						intArr[i] = intArr[i] / 2;
					} else {
						isEvenNumber = false;
					}
				}
				if (!isEvenNumber) {
					break;
				}
			}

			System.out.println(calculationCount / num);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			int num = Integer.parseInt(br.readLine());
			int calculationCount = 0;
			int[] intArr;
			boolean isEvenNumber = true;

			String[] stringArr = br.readLine().split(" ");
			intArr = new int[num];

			for (int i = 0; i < num; i++) {
				intArr[i] = Integer.parseInt(stringArr[i]);
			}

			while (true) {
				for (int i = 0; i < num; i++) {
					if (intArr[i] % 2 == 0) {
						calculationCount++;
						intArr[i] = intArr[i] / 2;
					} else {
						isEvenNumber = false;
					}
				}
				if (!isEvenNumber) {
					break;
				}
			}

			System.out.println(calculationCount / num);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			int num = Integer.parseInt(br.readLine());
			int calculationCount = 0;
			int[] intArr;
			boolean isEvenNumber = true;

			String[] stringArr = br.readLine().split(" ");
			intArr = new int[num];

			for (int i = 0; i < num; i++) {
				intArr[i] = Integer.parseInt(stringArr[i]);
			}

			while (true) {
				for (int i = 0; i < num; i++) {
					if (intArr[i] % 2 == 0) {
						calculationCount++;
						intArr[i] = intArr[i] / 2;
					} else {
						isEvenNumber = false;
					}
				}
				if (!isEvenNumber) {
					break;
				}
			}

			System.out.println(calculationCount / num);
		} catch (Exception e) {
			e.printStackTrace();
		}
	} main {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			int num = Integer.parseInt(br.readLine());
			int calculationCount = 0;
			int[] intArr;
			boolean isEvenNumber = true;

			String[] stringArr = br.readLine().split(" ");
			intArr = new int[num];

			for (int i = 0; i < num; i++) {
				intArr[i] = Integer.parseInt(stringArr[i]);
			}

			while (true) {
				for (int i = 0; i < num; i++) {
					if (intArr[i] % 2 == 0) {
						calculationCount++;
						intArr[i] = intArr[i] / 2;
					} else {
						isEvenNumber = false;
					}
				}
				if (!isEvenNumber) {
					break;
				}
			}

			System.out.println(calculationCount / num);
		} catch (Exception e) {
			e.printStackTrace();
		}
	} try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			int num = Integer.parseInt(br.readLine());
			int calculationCount = 0;
			int[] intArr;
			boolean isEvenNumber = true;

			String[] stringArr = br.readLine().split(" ");
			intArr = new int[num];

			for (int i = 0; i < num; i++) {
				intArr[i] = Integer.parseInt(stringArr[i]);
			}

			while (true) {
				for (int i = 0; i < num; i++) {
					if (intArr[i] % 2 == 0) {
						calculationCount++;
						intArr[i] = intArr[i] / 2;
					} else {
						isEvenNumber = false;
					}
				}
				if (!isEvenNumber) {
					break;
				}
			}

			System.out.println(calculationCount / num);
		} catch (Exception e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		} Exception e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			int num = Integer.parseInt(br.readLine());
			int calculationCount = 0;
			int[] intArr;
			boolean isEvenNumber = true;

			String[] stringArr = br.readLine().split(" ");
			intArr = new int[num];

			for (int i = 0; i < num; i++) {
				intArr[i] = Integer.parseInt(stringArr[i]);
			}

			while (true) {
				for (int i = 0; i < num; i++) {
					if (intArr[i] % 2 == 0) {
						calculationCount++;
						intArr[i] = intArr[i] / 2;
					} else {
						isEvenNumber = false;
					}
				}
				if (!isEvenNumber) {
					break;
				}
			}

			System.out.println(calculationCount / num);
		} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int num = Integer.parseInt(br.readLine()); num Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int calculationCount = 0; calculationCount 0 int[] intArr; intArr boolean isEvenNumber = true; isEvenNumber true String[] stringArr = br.readLine().split(" "); stringArr br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " intArr = new int[num] intArr new int[num] num for (int i = 0; i < num; i++) {
				intArr[i] = Integer.parseInt(stringArr[i]);
			} int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
				intArr[i] = Integer.parseInt(stringArr[i]);
			} {
				intArr[i] = Integer.parseInt(stringArr[i]);
			} intArr[i] = Integer.parseInt(stringArr[i]) intArr[i] intArr i Integer.parseInt(stringArr[i]) Integer.parseInt Integer stringArr[i] stringArr i while (true) {
				for (int i = 0; i < num; i++) {
					if (intArr[i] % 2 == 0) {
						calculationCount++;
						intArr[i] = intArr[i] / 2;
					} else {
						isEvenNumber = false;
					}
				}
				if (!isEvenNumber) {
					break;
				}
			} true {
				for (int i = 0; i < num; i++) {
					if (intArr[i] % 2 == 0) {
						calculationCount++;
						intArr[i] = intArr[i] / 2;
					} else {
						isEvenNumber = false;
					}
				}
				if (!isEvenNumber) {
					break;
				}
			} for (int i = 0; i < num; i++) {
					if (intArr[i] % 2 == 0) {
						calculationCount++;
						intArr[i] = intArr[i] / 2;
					} else {
						isEvenNumber = false;
					}
				} int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
					if (intArr[i] % 2 == 0) {
						calculationCount++;
						intArr[i] = intArr[i] / 2;
					} else {
						isEvenNumber = false;
					}
				} {
					if (intArr[i] % 2 == 0) {
						calculationCount++;
						intArr[i] = intArr[i] / 2;
					} else {
						isEvenNumber = false;
					}
				} if (intArr[i] % 2 == 0) {
						calculationCount++;
						intArr[i] = intArr[i] / 2;
					} else {
						isEvenNumber = false;
					} intArr[i] % 2 == 0 intArr[i] % 2 intArr[i] intArr i 2 0 {
						calculationCount++;
						intArr[i] = intArr[i] / 2;
					} calculationCount++ calculationCount intArr[i] = intArr[i] / 2 intArr[i] intArr i intArr[i] / 2 intArr[i] intArr i 2 {
						isEvenNumber = false;
					} isEvenNumber = false isEvenNumber false if (!isEvenNumber) {
					break;
				} !isEvenNumber isEvenNumber {
					break;
				} break; System.out.println(calculationCount / num) System.out.println System.out System System.out calculationCount / num calculationCount num String[] args args public class Main {

	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			int num = Integer.parseInt(br.readLine());
			int calculationCount = 0;
			int[] intArr;
			boolean isEvenNumber = true;

			String[] stringArr = br.readLine().split(" ");
			intArr = new int[num];

			for (int i = 0; i < num; i++) {
				intArr[i] = Integer.parseInt(stringArr[i]);
			}

			while (true) {
				for (int i = 0; i < num; i++) {
					if (intArr[i] % 2 == 0) {
						calculationCount++;
						intArr[i] = intArr[i] / 2;
					} else {
						isEvenNumber = false;
					}
				}
				if (!isEvenNumber) {
					break;
				}
			}

			System.out.println(calculationCount / num);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} public class Main {

	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			int num = Integer.parseInt(br.readLine());
			int calculationCount = 0;
			int[] intArr;
			boolean isEvenNumber = true;

			String[] stringArr = br.readLine().split(" ");
			intArr = new int[num];

			for (int i = 0; i < num; i++) {
				intArr[i] = Integer.parseInt(stringArr[i]);
			}

			while (true) {
				for (int i = 0; i < num; i++) {
					if (intArr[i] % 2 == 0) {
						calculationCount++;
						intArr[i] = intArr[i] / 2;
					} else {
						isEvenNumber = false;
					}
				}
				if (!isEvenNumber) {
					break;
				}
			}

			System.out.println(calculationCount / num);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			int num = Integer.parseInt(br.readLine());
			int calculationCount = 0;
			int[] intArr;
			boolean isEvenNumber = true;

			String[] stringArr = br.readLine().split(" ");
			intArr = new int[num];

			for (int i = 0; i < num; i++) {
				intArr[i] = Integer.parseInt(stringArr[i]);
			}

			while (true) {
				for (int i = 0; i < num; i++) {
					if (intArr[i] % 2 == 0) {
						calculationCount++;
						intArr[i] = intArr[i] / 2;
					} else {
						isEvenNumber = false;
					}
				}
				if (!isEvenNumber) {
					break;
				}
			}

			System.out.println(calculationCount / num);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
