import java.util.*;
class Main
{
		public static void main(String[] args)
		{
			Scanner sc = new Scanner(System.in);
			
			int n = sc.nextInt();
			int[] param1 = new int[n];
			
			for(int i=0 ; i<n ; i++){
				
				param1[i] = sc.nextInt();
				
			}
			
			int res = 0;
			
			while(true){
			
			int sum = 0;
			
			for(int i=0 ; i<n ; i++){
			
			if(param1[i]%2==0){
				sum++;
			}else{
				System.out.println(res);
				return;
			}
			
			}
			
			if(sum==n){
				for(int i=0 ; i<n ; i++){
					param1[i]/=2;
				}
			}
			res++;
			}
		}
} import java.util.*; util.* java class Main
{
		public static void main(String[] args)
		{
			Scanner sc = new Scanner(System.in);
			
			int n = sc.nextInt();
			int[] param1 = new int[n];
			
			for(int i=0 ; i<n ; i++){
				
				param1[i] = sc.nextInt();
				
			}
			
			int res = 0;
			
			while(true){
			
			int sum = 0;
			
			for(int i=0 ; i<n ; i++){
			
			if(param1[i]%2==0){
				sum++;
			}else{
				System.out.println(res);
				return;
			}
			
			}
			
			if(sum==n){
				for(int i=0 ; i<n ; i++){
					param1[i]/=2;
				}
			}
			res++;
			}
		}
} Main public static void main(String[] args)
		{
			Scanner sc = new Scanner(System.in);
			
			int n = sc.nextInt();
			int[] param1 = new int[n];
			
			for(int i=0 ; i<n ; i++){
				
				param1[i] = sc.nextInt();
				
			}
			
			int res = 0;
			
			while(true){
			
			int sum = 0;
			
			for(int i=0 ; i<n ; i++){
			
			if(param1[i]%2==0){
				sum++;
			}else{
				System.out.println(res);
				return;
			}
			
			}
			
			if(sum==n){
				for(int i=0 ; i<n ; i++){
					param1[i]/=2;
				}
			}
			res++;
			}
		} main {
			Scanner sc = new Scanner(System.in);
			
			int n = sc.nextInt();
			int[] param1 = new int[n];
			
			for(int i=0 ; i<n ; i++){
				
				param1[i] = sc.nextInt();
				
			}
			
			int res = 0;
			
			while(true){
			
			int sum = 0;
			
			for(int i=0 ; i<n ; i++){
			
			if(param1[i]%2==0){
				sum++;
			}else{
				System.out.println(res);
				return;
			}
			
			}
			
			if(sum==n){
				for(int i=0 ; i<n ; i++){
					param1[i]/=2;
				}
			}
			res++;
			}
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] param1 = new int[n]; param1 new int[n] n for(int i=0 ; i<n ; i++){
				
				param1[i] = sc.nextInt();
				
			} int i=0 ; int i=0 ; i 0 i<n i n i++ i++ i {
				
				param1[i] = sc.nextInt();
				
			} {
				
				param1[i] = sc.nextInt();
				
			} param1[i] = sc.nextInt() param1[i] param1 i sc.nextInt() sc.nextInt sc int res = 0; res 0 while(true){
			
			int sum = 0;
			
			for(int i=0 ; i<n ; i++){
			
			if(param1[i]%2==0){
				sum++;
			}else{
				System.out.println(res);
				return;
			}
			
			}
			
			if(sum==n){
				for(int i=0 ; i<n ; i++){
					param1[i]/=2;
				}
			}
			res++;
			} true {
			
			int sum = 0;
			
			for(int i=0 ; i<n ; i++){
			
			if(param1[i]%2==0){
				sum++;
			}else{
				System.out.println(res);
				return;
			}
			
			}
			
			if(sum==n){
				for(int i=0 ; i<n ; i++){
					param1[i]/=2;
				}
			}
			res++;
			} int sum = 0; sum 0 for(int i=0 ; i<n ; i++){
			
			if(param1[i]%2==0){
				sum++;
			}else{
				System.out.println(res);
				return;
			}
			
			} int i=0 ; int i=0 ; i 0 i<n i n i++ i++ i {
			
			if(param1[i]%2==0){
				sum++;
			}else{
				System.out.println(res);
				return;
			}
			
			} {
			
			if(param1[i]%2==0){
				sum++;
			}else{
				System.out.println(res);
				return;
			}
			
			} if(param1[i]%2==0){
				sum++;
			}else{
				System.out.println(res);
				return;
			} param1[i]%2==0 param1[i]%2 param1[i] param1 i 2 0 {
				sum++;
			} sum++ sum {
				System.out.println(res);
				return;
			} System.out.println(res) System.out.println System.out System System.out res return; if(sum==n){
				for(int i=0 ; i<n ; i++){
					param1[i]/=2;
				}
			} sum==n sum n {
				for(int i=0 ; i<n ; i++){
					param1[i]/=2;
				}
			} for(int i=0 ; i<n ; i++){
					param1[i]/=2;
				} int i=0 ; int i=0 ; i 0 i<n i n i++ i++ i {
					param1[i]/=2;
				} {
					param1[i]/=2;
				} param1[i]/=2 param1[i] param1 i 2 res++ res String[] args args
import java.util.*;
class Main
{
		public static void main(String[] args)
		{
			Scanner sc = new Scanner(System.in);
			
			int n = sc.nextInt();
			int[] param1 = new int[n];
			
			for(int i=0 ; i<n ; i++){
				
				param1[i] = sc.nextInt();
				
			}
			
			int res = 0;
			
			while(true){
			
			int sum = 0;
			
			for(int i=0 ; i<n ; i++){
			
			if(param1[i]%2==0){
				sum++;
			}else{
				System.out.println(res);
				return;
			}
			
			}
			
			if(sum==n){
				for(int i=0 ; i<n ; i++){
					param1[i]/=2;
				}
			}
			res++;
			}
		}
}