import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    int count = 0;
    boolean tf = true;
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int[] numList = new int[num];
    for(int i = 0; i < num; i++){
    numList[i] =sc.nextInt();
    }
    
    while(tf == true){
    	for(int i = 0; i < num; i++){
    		if(numList[i] % 2 == 1) {
    	  	tf = false;
    	  	break;
            }else{
              numList[i] = numList[i] / 2;
   			}
    	}
      if(tf == true)count++;
    }
    System.out.println(count);   
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    int count = 0;
    boolean tf = true;
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int[] numList = new int[num];
    for(int i = 0; i < num; i++){
    numList[i] =sc.nextInt();
    }
    
    while(tf == true){
    	for(int i = 0; i < num; i++){
    		if(numList[i] % 2 == 1) {
    	  	tf = false;
    	  	break;
            }else{
              numList[i] = numList[i] / 2;
   			}
    	}
      if(tf == true)count++;
    }
    System.out.println(count);   
  }
} Main public static void main(String[] args){
    int count = 0;
    boolean tf = true;
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int[] numList = new int[num];
    for(int i = 0; i < num; i++){
    numList[i] =sc.nextInt();
    }
    
    while(tf == true){
    	for(int i = 0; i < num; i++){
    		if(numList[i] % 2 == 1) {
    	  	tf = false;
    	  	break;
            }else{
              numList[i] = numList[i] / 2;
   			}
    	}
      if(tf == true)count++;
    }
    System.out.println(count);   
  } main {
    int count = 0;
    boolean tf = true;
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int[] numList = new int[num];
    for(int i = 0; i < num; i++){
    numList[i] =sc.nextInt();
    }
    
    while(tf == true){
    	for(int i = 0; i < num; i++){
    		if(numList[i] % 2 == 1) {
    	  	tf = false;
    	  	break;
            }else{
              numList[i] = numList[i] / 2;
   			}
    	}
      if(tf == true)count++;
    }
    System.out.println(count);   
  } int count = 0; count 0 boolean tf = true; tf true Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int[] numList = new int[num]; numList new int[num] num for(int i = 0; i < num; i++){
    numList[i] =sc.nextInt();
    } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
    numList[i] =sc.nextInt();
    } {
    numList[i] =sc.nextInt();
    } numList[i] =sc.nextInt() numList[i] numList i sc.nextInt() sc.nextInt sc while(tf == true){
    	for(int i = 0; i < num; i++){
    		if(numList[i] % 2 == 1) {
    	  	tf = false;
    	  	break;
            }else{
              numList[i] = numList[i] / 2;
   			}
    	}
      if(tf == true)count++;
    } tf == true tf true {
    	for(int i = 0; i < num; i++){
    		if(numList[i] % 2 == 1) {
    	  	tf = false;
    	  	break;
            }else{
              numList[i] = numList[i] / 2;
   			}
    	}
      if(tf == true)count++;
    } for(int i = 0; i < num; i++){
    		if(numList[i] % 2 == 1) {
    	  	tf = false;
    	  	break;
            }else{
              numList[i] = numList[i] / 2;
   			}
    	} int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
    		if(numList[i] % 2 == 1) {
    	  	tf = false;
    	  	break;
            }else{
              numList[i] = numList[i] / 2;
   			}
    	} {
    		if(numList[i] % 2 == 1) {
    	  	tf = false;
    	  	break;
            }else{
              numList[i] = numList[i] / 2;
   			}
    	} if(numList[i] % 2 == 1) {
    	  	tf = false;
    	  	break;
            }else{
              numList[i] = numList[i] / 2;
   			} numList[i] % 2 == 1 numList[i] % 2 numList[i] numList i 2 1 {
    	  	tf = false;
    	  	break;
            } tf = false tf false break; {
              numList[i] = numList[i] / 2;
   			} numList[i] = numList[i] / 2 numList[i] numList i numList[i] / 2 numList[i] numList i 2 if(tf == true)count++; tf == true tf true 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){
    int count = 0;
    boolean tf = true;
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int[] numList = new int[num];
    for(int i = 0; i < num; i++){
    numList[i] =sc.nextInt();
    }
    
    while(tf == true){
    	for(int i = 0; i < num; i++){
    		if(numList[i] % 2 == 1) {
    	  	tf = false;
    	  	break;
            }else{
              numList[i] = numList[i] / 2;
   			}
    	}
      if(tf == true)count++;
    }
    System.out.println(count);   
  }
} public class Main{
  public static void main(String[] args){
    int count = 0;
    boolean tf = true;
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int[] numList = new int[num];
    for(int i = 0; i < num; i++){
    numList[i] =sc.nextInt();
    }
    
    while(tf == true){
    	for(int i = 0; i < num; i++){
    		if(numList[i] % 2 == 1) {
    	  	tf = false;
    	  	break;
            }else{
              numList[i] = numList[i] / 2;
   			}
    	}
      if(tf == true)count++;
    }
    System.out.println(count);   
  }
} Main
import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    int count = 0;
    boolean tf = true;
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int[] numList = new int[num];
    for(int i = 0; i < num; i++){
    numList[i] =sc.nextInt();
    }
    
    while(tf == true){
    	for(int i = 0; i < num; i++){
    		if(numList[i] % 2 == 1) {
    	  	tf = false;
    	  	break;
            }else{
              numList[i] = numList[i] / 2;
   			}
    	}
      if(tf == true)count++;
    }
    System.out.println(count);   
  }
}