import java.util.*;
 class Main{

     public static void main(String []args){
      Scanner scan = new Scanner(System.in);
      int n = scan.nextInt() ;
      int arr[] = new int[n] ;
      
      for(int i = 0; i< n ; i++ ){
          arr[i] = scan.nextInt();
      }
      int count = 0 ;
      while(evenCheck(arr)){
          for(int i = 0 ; i <n ;i++){
              arr[i] = arr[i]/2 ;
          }
          count++;
      }
      System.out.println(count) ;
      
  
     
      
    }
     static boolean evenCheck(int arr[]){
          int count = 0 ;
          for(int i = 0 ; i<arr.length ; i++){
              if(arr[i]%2 != 0 ){
                  return false ;
              }
          }
          return true ;
      }
} import java.util.*; util.* java class Main{

     public static void main(String []args){
      Scanner scan = new Scanner(System.in);
      int n = scan.nextInt() ;
      int arr[] = new int[n] ;
      
      for(int i = 0; i< n ; i++ ){
          arr[i] = scan.nextInt();
      }
      int count = 0 ;
      while(evenCheck(arr)){
          for(int i = 0 ; i <n ;i++){
              arr[i] = arr[i]/2 ;
          }
          count++;
      }
      System.out.println(count) ;
      
  
     
      
    }
     static boolean evenCheck(int arr[]){
          int count = 0 ;
          for(int i = 0 ; i<arr.length ; i++){
              if(arr[i]%2 != 0 ){
                  return false ;
              }
          }
          return true ;
      }
} Main public static void main(String []args){
      Scanner scan = new Scanner(System.in);
      int n = scan.nextInt() ;
      int arr[] = new int[n] ;
      
      for(int i = 0; i< n ; i++ ){
          arr[i] = scan.nextInt();
      }
      int count = 0 ;
      while(evenCheck(arr)){
          for(int i = 0 ; i <n ;i++){
              arr[i] = arr[i]/2 ;
          }
          count++;
      }
      System.out.println(count) ;
      
  
     
      
    } main {
      Scanner scan = new Scanner(System.in);
      int n = scan.nextInt() ;
      int arr[] = new int[n] ;
      
      for(int i = 0; i< n ; i++ ){
          arr[i] = scan.nextInt();
      }
      int count = 0 ;
      while(evenCheck(arr)){
          for(int i = 0 ; i <n ;i++){
              arr[i] = arr[i]/2 ;
          }
          count++;
      }
      System.out.println(count) ;
      
  
     
      
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt() ; n scan.nextInt() scan.nextInt scan int arr[] = new int[n] ; arr new int[n] n for(int i = 0; i< n ; i++ ){
          arr[i] = scan.nextInt();
      } int i = 0; int i = 0; i 0 i< n i n i++ i++ i {
          arr[i] = scan.nextInt();
      } {
          arr[i] = scan.nextInt();
      } arr[i] = scan.nextInt() arr[i] arr i scan.nextInt() scan.nextInt scan int count = 0 ; count 0 while(evenCheck(arr)){
          for(int i = 0 ; i <n ;i++){
              arr[i] = arr[i]/2 ;
          }
          count++;
      } evenCheck(arr) evenCheck arr {
          for(int i = 0 ; i <n ;i++){
              arr[i] = arr[i]/2 ;
          }
          count++;
      } for(int i = 0 ; i <n ;i++){
              arr[i] = arr[i]/2 ;
          } int i = 0 ; int i = 0 ; i 0 i <n i n i++ i++ i {
              arr[i] = arr[i]/2 ;
          } {
              arr[i] = arr[i]/2 ;
          } arr[i] = arr[i]/2 arr[i] arr i arr[i]/2 arr[i] arr i 2 count++ count System.out.println(count) System.out.println System.out System System.out count String []args args static boolean evenCheck(int arr[]){
          int count = 0 ;
          for(int i = 0 ; i<arr.length ; i++){
              if(arr[i]%2 != 0 ){
                  return false ;
              }
          }
          return true ;
      } evenCheck {
          int count = 0 ;
          for(int i = 0 ; i<arr.length ; i++){
              if(arr[i]%2 != 0 ){
                  return false ;
              }
          }
          return true ;
      } int count = 0 ; count 0 for(int i = 0 ; i<arr.length ; i++){
              if(arr[i]%2 != 0 ){
                  return false ;
              }
          } int i = 0 ; int i = 0 ; i 0 i<arr.length i arr.length arr arr.length i++ i++ i {
              if(arr[i]%2 != 0 ){
                  return false ;
              }
          } {
              if(arr[i]%2 != 0 ){
                  return false ;
              }
          } if(arr[i]%2 != 0 ){
                  return false ;
              } arr[i]%2 != 0 arr[i]%2 arr[i] arr i 2 0 {
                  return false ;
              } return false ; false return true ; true int arr[] arr
import java.util.*;
 class Main{

     public static void main(String []args){
      Scanner scan = new Scanner(System.in);
      int n = scan.nextInt() ;
      int arr[] = new int[n] ;
      
      for(int i = 0; i< n ; i++ ){
          arr[i] = scan.nextInt();
      }
      int count = 0 ;
      while(evenCheck(arr)){
          for(int i = 0 ; i <n ;i++){
              arr[i] = arr[i]/2 ;
          }
          count++;
      }
      System.out.println(count) ;
      
  
     
      
    }
     static boolean evenCheck(int arr[]){
          int count = 0 ;
          for(int i = 0 ; i<arr.length ; i++){
              if(arr[i]%2 != 0 ){
                  return false ;
              }
          }
          return true ;
      }
}