import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int a[]= new int[n];
		for(int i=0;i<n;i++) {
			a[i]=scan.nextInt();
		}
		scan.close();
		int cnt=0;
		int check=0;
		while(true) {
			for(int i=0;i<n;i++) {
				if(a[i]%2!=0) {
					check=1;
					break;
				}
			}
			if(check==1)break;
			else {
				cnt++;
				for(int i=0;i<n;i++) {
					a[i]/=2;
				}
			}
		}
		System.out.println(cnt);
	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int a[]= new int[n];
		for(int i=0;i<n;i++) {
			a[i]=scan.nextInt();
		}
		scan.close();
		int cnt=0;
		int check=0;
		while(true) {
			for(int i=0;i<n;i++) {
				if(a[i]%2!=0) {
					check=1;
					break;
				}
			}
			if(check==1)break;
			else {
				cnt++;
				for(int i=0;i<n;i++) {
					a[i]/=2;
				}
			}
		}
		System.out.println(cnt);
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int a[]= new int[n];
		for(int i=0;i<n;i++) {
			a[i]=scan.nextInt();
		}
		scan.close();
		int cnt=0;
		int check=0;
		while(true) {
			for(int i=0;i<n;i++) {
				if(a[i]%2!=0) {
					check=1;
					break;
				}
			}
			if(check==1)break;
			else {
				cnt++;
				for(int i=0;i<n;i++) {
					a[i]/=2;
				}
			}
		}
		System.out.println(cnt);
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int a[]= new int[n];
		for(int i=0;i<n;i++) {
			a[i]=scan.nextInt();
		}
		scan.close();
		int cnt=0;
		int check=0;
		while(true) {
			for(int i=0;i<n;i++) {
				if(a[i]%2!=0) {
					check=1;
					break;
				}
			}
			if(check==1)break;
			else {
				cnt++;
				for(int i=0;i<n;i++) {
					a[i]/=2;
				}
			}
		}
		System.out.println(cnt);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int a[]= new int[n]; a new int[n] n for(int i=0;i<n;i++) {
			a[i]=scan.nextInt();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			a[i]=scan.nextInt();
		} {
			a[i]=scan.nextInt();
		} a[i]=scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan scan.close() scan.close scan int cnt=0; cnt 0 int check=0; check 0 while(true) {
			for(int i=0;i<n;i++) {
				if(a[i]%2!=0) {
					check=1;
					break;
				}
			}
			if(check==1)break;
			else {
				cnt++;
				for(int i=0;i<n;i++) {
					a[i]/=2;
				}
			}
		} true {
			for(int i=0;i<n;i++) {
				if(a[i]%2!=0) {
					check=1;
					break;
				}
			}
			if(check==1)break;
			else {
				cnt++;
				for(int i=0;i<n;i++) {
					a[i]/=2;
				}
			}
		} for(int i=0;i<n;i++) {
				if(a[i]%2!=0) {
					check=1;
					break;
				}
			} int i=0; int i=0; i 0 i<n i n i++ i++ i {
				if(a[i]%2!=0) {
					check=1;
					break;
				}
			} {
				if(a[i]%2!=0) {
					check=1;
					break;
				}
			} if(a[i]%2!=0) {
					check=1;
					break;
				} a[i]%2!=0 a[i]%2 a[i] a i 2 0 {
					check=1;
					break;
				} check=1 check 1 break; if(check==1)break;
			else {
				cnt++;
				for(int i=0;i<n;i++) {
					a[i]/=2;
				}
			} check==1 check 1 break; {
				cnt++;
				for(int i=0;i<n;i++) {
					a[i]/=2;
				}
			} cnt++ cnt for(int i=0;i<n;i++) {
					a[i]/=2;
				} int i=0; int i=0; i 0 i<n i n i++ i++ i {
					a[i]/=2;
				} {
					a[i]/=2;
				} a[i]/=2 a[i] a i 2 System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int a[]= new int[n];
		for(int i=0;i<n;i++) {
			a[i]=scan.nextInt();
		}
		scan.close();
		int cnt=0;
		int check=0;
		while(true) {
			for(int i=0;i<n;i++) {
				if(a[i]%2!=0) {
					check=1;
					break;
				}
			}
			if(check==1)break;
			else {
				cnt++;
				for(int i=0;i<n;i++) {
					a[i]/=2;
				}
			}
		}
		System.out.println(cnt);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int a[]= new int[n];
		for(int i=0;i<n;i++) {
			a[i]=scan.nextInt();
		}
		scan.close();
		int cnt=0;
		int check=0;
		while(true) {
			for(int i=0;i<n;i++) {
				if(a[i]%2!=0) {
					check=1;
					break;
				}
			}
			if(check==1)break;
			else {
				cnt++;
				for(int i=0;i<n;i++) {
					a[i]/=2;
				}
			}
		}
		System.out.println(cnt);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int a[]= new int[n];
		for(int i=0;i<n;i++) {
			a[i]=scan.nextInt();
		}
		scan.close();
		int cnt=0;
		int check=0;
		while(true) {
			for(int i=0;i<n;i++) {
				if(a[i]%2!=0) {
					check=1;
					break;
				}
			}
			if(check==1)break;
			else {
				cnt++;
				for(int i=0;i<n;i++) {
					a[i]/=2;
				}
			}
		}
		System.out.println(cnt);
	}

}