import java.util.Scanner;

public class Main  {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int[] how = new int[a];

		for(int i=0 ; a>i ; i++) {
			int b = sc.nextInt();
			how[i]=b;
		}

		int count = 0;
		int z =0;
		while(true) {
			for (int i = 0; a>i; i++) {
				if (how[i]%2==1) {
					z = 1;
					break;
				}

				else if (how[i]%2==0) {
					how[i]=how[i]/2;

					if (i==(a-1)){
						count++;
					}
				}

			}
			if(z==1)
				break;
		}


		System.out.println(count);

	}

} import java.util.Scanner; Scanner java.util public class Main  {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int[] how = new int[a];

		for(int i=0 ; a>i ; i++) {
			int b = sc.nextInt();
			how[i]=b;
		}

		int count = 0;
		int z =0;
		while(true) {
			for (int i = 0; a>i; i++) {
				if (how[i]%2==1) {
					z = 1;
					break;
				}

				else if (how[i]%2==0) {
					how[i]=how[i]/2;

					if (i==(a-1)){
						count++;
					}
				}

			}
			if(z==1)
				break;
		}


		System.out.println(count);

	}

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

		for(int i=0 ; a>i ; i++) {
			int b = sc.nextInt();
			how[i]=b;
		}

		int count = 0;
		int z =0;
		while(true) {
			for (int i = 0; a>i; i++) {
				if (how[i]%2==1) {
					z = 1;
					break;
				}

				else if (how[i]%2==0) {
					how[i]=how[i]/2;

					if (i==(a-1)){
						count++;
					}
				}

			}
			if(z==1)
				break;
		}


		System.out.println(count);

	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int[] how = new int[a];

		for(int i=0 ; a>i ; i++) {
			int b = sc.nextInt();
			how[i]=b;
		}

		int count = 0;
		int z =0;
		while(true) {
			for (int i = 0; a>i; i++) {
				if (how[i]%2==1) {
					z = 1;
					break;
				}

				else if (how[i]%2==0) {
					how[i]=how[i]/2;

					if (i==(a-1)){
						count++;
					}
				}

			}
			if(z==1)
				break;
		}


		System.out.println(count);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int[] how = new int[a]; how new int[a] a for(int i=0 ; a>i ; i++) {
			int b = sc.nextInt();
			how[i]=b;
		} int i=0 ; int i=0 ; i 0 a>i a i i++ i++ i {
			int b = sc.nextInt();
			how[i]=b;
		} {
			int b = sc.nextInt();
			how[i]=b;
		} int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc how[i]=b how[i] how i b int count = 0; count 0 int z =0; z 0 while(true) {
			for (int i = 0; a>i; i++) {
				if (how[i]%2==1) {
					z = 1;
					break;
				}

				else if (how[i]%2==0) {
					how[i]=how[i]/2;

					if (i==(a-1)){
						count++;
					}
				}

			}
			if(z==1)
				break;
		} true {
			for (int i = 0; a>i; i++) {
				if (how[i]%2==1) {
					z = 1;
					break;
				}

				else if (how[i]%2==0) {
					how[i]=how[i]/2;

					if (i==(a-1)){
						count++;
					}
				}

			}
			if(z==1)
				break;
		} for (int i = 0; a>i; i++) {
				if (how[i]%2==1) {
					z = 1;
					break;
				}

				else if (how[i]%2==0) {
					how[i]=how[i]/2;

					if (i==(a-1)){
						count++;
					}
				}

			} int i = 0; int i = 0; i 0 a>i a i i++ i++ i {
				if (how[i]%2==1) {
					z = 1;
					break;
				}

				else if (how[i]%2==0) {
					how[i]=how[i]/2;

					if (i==(a-1)){
						count++;
					}
				}

			} {
				if (how[i]%2==1) {
					z = 1;
					break;
				}

				else if (how[i]%2==0) {
					how[i]=how[i]/2;

					if (i==(a-1)){
						count++;
					}
				}

			} if (how[i]%2==1) {
					z = 1;
					break;
				}

				else if (how[i]%2==0) {
					how[i]=how[i]/2;

					if (i==(a-1)){
						count++;
					}
				} how[i]%2==1 how[i]%2 how[i] how i 2 1 {
					z = 1;
					break;
				} z = 1 z 1 break; if (how[i]%2==0) {
					how[i]=how[i]/2;

					if (i==(a-1)){
						count++;
					}
				} how[i]%2==0 how[i]%2 how[i] how i 2 0 {
					how[i]=how[i]/2;

					if (i==(a-1)){
						count++;
					}
				} how[i]=how[i]/2 how[i] how i how[i]/2 how[i] how i 2 if (i==(a-1)){
						count++;
					} i==(a-1) i (a-1) a 1 {
						count++;
					} count++ count if(z==1)
				break; z==1 z 1 break; 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 sc = new Scanner(System.in);
		int a = sc.nextInt();
		int[] how = new int[a];

		for(int i=0 ; a>i ; i++) {
			int b = sc.nextInt();
			how[i]=b;
		}

		int count = 0;
		int z =0;
		while(true) {
			for (int i = 0; a>i; i++) {
				if (how[i]%2==1) {
					z = 1;
					break;
				}

				else if (how[i]%2==0) {
					how[i]=how[i]/2;

					if (i==(a-1)){
						count++;
					}
				}

			}
			if(z==1)
				break;
		}


		System.out.println(count);

	}

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

		for(int i=0 ; a>i ; i++) {
			int b = sc.nextInt();
			how[i]=b;
		}

		int count = 0;
		int z =0;
		while(true) {
			for (int i = 0; a>i; i++) {
				if (how[i]%2==1) {
					z = 1;
					break;
				}

				else if (how[i]%2==0) {
					how[i]=how[i]/2;

					if (i==(a-1)){
						count++;
					}
				}

			}
			if(z==1)
				break;
		}


		System.out.println(count);

	}

} Main
import java.util.Scanner;

public class Main  {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int[] how = new int[a];

		for(int i=0 ; a>i ; i++) {
			int b = sc.nextInt();
			how[i]=b;
		}

		int count = 0;
		int z =0;
		while(true) {
			for (int i = 0; a>i; i++) {
				if (how[i]%2==1) {
					z = 1;
					break;
				}

				else if (how[i]%2==0) {
					how[i]=how[i]/2;

					if (i==(a-1)){
						count++;
					}
				}

			}
			if(z==1)
				break;
		}


		System.out.println(count);

	}

}
