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

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int maxNum = scan.nextInt();
		List<Integer> numArray = new ArrayList<Integer>();
		for(int i = 0; i < maxNum; ++i) {
			numArray.add(scan.nextInt());
		}
		scan.close();

		int count = 0;
		while(true) {
			boolean finishFlg = false;
			for(int i=0; i < numArray.size(); ++i) {
				// 2で割れるなら割って更新
				if(numArray.get(i) % 2 == 0) {
					numArray.set(i, numArray.get(i) / 2);
				} else {
					finishFlg = true;
					break;
				}
			}
			if(finishFlg) break;
			count++;
		}
		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) {
		Scanner scan = new Scanner(System.in);
		int maxNum = scan.nextInt();
		List<Integer> numArray = new ArrayList<Integer>();
		for(int i = 0; i < maxNum; ++i) {
			numArray.add(scan.nextInt());
		}
		scan.close();

		int count = 0;
		while(true) {
			boolean finishFlg = false;
			for(int i=0; i < numArray.size(); ++i) {
				// 2で割れるなら割って更新
				if(numArray.get(i) % 2 == 0) {
					numArray.set(i, numArray.get(i) / 2);
				} else {
					finishFlg = true;
					break;
				}
			}
			if(finishFlg) break;
			count++;
		}
		System.out.println(count);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int maxNum = scan.nextInt();
		List<Integer> numArray = new ArrayList<Integer>();
		for(int i = 0; i < maxNum; ++i) {
			numArray.add(scan.nextInt());
		}
		scan.close();

		int count = 0;
		while(true) {
			boolean finishFlg = false;
			for(int i=0; i < numArray.size(); ++i) {
				// 2で割れるなら割って更新
				if(numArray.get(i) % 2 == 0) {
					numArray.set(i, numArray.get(i) / 2);
				} else {
					finishFlg = true;
					break;
				}
			}
			if(finishFlg) break;
			count++;
		}
		System.out.println(count);
	} main {
		Scanner scan = new Scanner(System.in);
		int maxNum = scan.nextInt();
		List<Integer> numArray = new ArrayList<Integer>();
		for(int i = 0; i < maxNum; ++i) {
			numArray.add(scan.nextInt());
		}
		scan.close();

		int count = 0;
		while(true) {
			boolean finishFlg = false;
			for(int i=0; i < numArray.size(); ++i) {
				// 2で割れるなら割って更新
				if(numArray.get(i) % 2 == 0) {
					numArray.set(i, numArray.get(i) / 2);
				} else {
					finishFlg = true;
					break;
				}
			}
			if(finishFlg) break;
			count++;
		}
		System.out.println(count);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int maxNum = scan.nextInt(); maxNum scan.nextInt() scan.nextInt scan List<Integer> numArray = new ArrayList<Integer>(); numArray new ArrayList<Integer>() for(int i = 0; i < maxNum; ++i) {
			numArray.add(scan.nextInt());
		} int i = 0; int i = 0; i 0 i < maxNum i maxNum ++i ++i i {
			numArray.add(scan.nextInt());
		} {
			numArray.add(scan.nextInt());
		} numArray.add(scan.nextInt()) numArray.add numArray scan.nextInt() scan.nextInt scan scan.close() scan.close scan int count = 0; count 0 while(true) {
			boolean finishFlg = false;
			for(int i=0; i < numArray.size(); ++i) {
				// 2で割れるなら割って更新
				if(numArray.get(i) % 2 == 0) {
					numArray.set(i, numArray.get(i) / 2);
				} else {
					finishFlg = true;
					break;
				}
			}
			if(finishFlg) break;
			count++;
		} true {
			boolean finishFlg = false;
			for(int i=0; i < numArray.size(); ++i) {
				// 2で割れるなら割って更新
				if(numArray.get(i) % 2 == 0) {
					numArray.set(i, numArray.get(i) / 2);
				} else {
					finishFlg = true;
					break;
				}
			}
			if(finishFlg) break;
			count++;
		} boolean finishFlg = false; finishFlg false for(int i=0; i < numArray.size(); ++i) {
				// 2で割れるなら割って更新
				if(numArray.get(i) % 2 == 0) {
					numArray.set(i, numArray.get(i) / 2);
				} else {
					finishFlg = true;
					break;
				}
			} int i=0; int i=0; i 0 i < numArray.size() i numArray.size() numArray.size numArray ++i ++i i {
				// 2で割れるなら割って更新
				if(numArray.get(i) % 2 == 0) {
					numArray.set(i, numArray.get(i) / 2);
				} else {
					finishFlg = true;
					break;
				}
			} {
				// 2で割れるなら割って更新
				if(numArray.get(i) % 2 == 0) {
					numArray.set(i, numArray.get(i) / 2);
				} else {
					finishFlg = true;
					break;
				}
			} if(numArray.get(i) % 2 == 0) {
					numArray.set(i, numArray.get(i) / 2);
				} else {
					finishFlg = true;
					break;
				} numArray.get(i) % 2 == 0 numArray.get(i) % 2 numArray.get(i) numArray.get numArray i 2 0 {
					numArray.set(i, numArray.get(i) / 2);
				} numArray.set(i, numArray.get(i) / 2) numArray.set numArray i numArray.get(i) / 2 numArray.get(i) numArray.get numArray i 2 {
					finishFlg = true;
					break;
				} finishFlg = true finishFlg true break; if(finishFlg) break; finishFlg break; count++ count 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) {
		Scanner scan = new Scanner(System.in);
		int maxNum = scan.nextInt();
		List<Integer> numArray = new ArrayList<Integer>();
		for(int i = 0; i < maxNum; ++i) {
			numArray.add(scan.nextInt());
		}
		scan.close();

		int count = 0;
		while(true) {
			boolean finishFlg = false;
			for(int i=0; i < numArray.size(); ++i) {
				// 2で割れるなら割って更新
				if(numArray.get(i) % 2 == 0) {
					numArray.set(i, numArray.get(i) / 2);
				} else {
					finishFlg = true;
					break;
				}
			}
			if(finishFlg) break;
			count++;
		}
		System.out.println(count);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int maxNum = scan.nextInt();
		List<Integer> numArray = new ArrayList<Integer>();
		for(int i = 0; i < maxNum; ++i) {
			numArray.add(scan.nextInt());
		}
		scan.close();

		int count = 0;
		while(true) {
			boolean finishFlg = false;
			for(int i=0; i < numArray.size(); ++i) {
				// 2で割れるなら割って更新
				if(numArray.get(i) % 2 == 0) {
					numArray.set(i, numArray.get(i) / 2);
				} else {
					finishFlg = true;
					break;
				}
			}
			if(finishFlg) break;
			count++;
		}
		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) {
		Scanner scan = new Scanner(System.in);
		int maxNum = scan.nextInt();
		List<Integer> numArray = new ArrayList<Integer>();
		for(int i = 0; i < maxNum; ++i) {
			numArray.add(scan.nextInt());
		}
		scan.close();

		int count = 0;
		while(true) {
			boolean finishFlg = false;
			for(int i=0; i < numArray.size(); ++i) {
				// 2で割れるなら割って更新
				if(numArray.get(i) % 2 == 0) {
					numArray.set(i, numArray.get(i) / 2);
				} else {
					finishFlg = true;
					break;
				}
			}
			if(finishFlg) break;
			count++;
		}
		System.out.println(count);
	}
}
