import java.util.*;
 
public class Main{
	public static void main(String[] args){
	Scanner scanner = new Scanner(System.in);
      int n = scanner.nextInt();
      
      List<Integer> list = new ArrayList<>();
      
      for (int i = 0; i < n ; i++){
      	int b = scanner.nextInt();
        list.add(b);
      }
      
      int count = 0;
      Boolean results = true;
      
      while(results){
        
          for(int j = 0; j < list.size(); j++ ){
            if(list.get(j) % 2 != 0){
              results = false;
              break;
            }
              list.set(j,list.get(j) / 2);
        }
        if(results){
          count += 1;
        }
      }
     System.out.println(count);
    }
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
	Scanner scanner = new Scanner(System.in);
      int n = scanner.nextInt();
      
      List<Integer> list = new ArrayList<>();
      
      for (int i = 0; i < n ; i++){
      	int b = scanner.nextInt();
        list.add(b);
      }
      
      int count = 0;
      Boolean results = true;
      
      while(results){
        
          for(int j = 0; j < list.size(); j++ ){
            if(list.get(j) % 2 != 0){
              results = false;
              break;
            }
              list.set(j,list.get(j) / 2);
        }
        if(results){
          count += 1;
        }
      }
     System.out.println(count);
    }
} Main public static void main(String[] args){
	Scanner scanner = new Scanner(System.in);
      int n = scanner.nextInt();
      
      List<Integer> list = new ArrayList<>();
      
      for (int i = 0; i < n ; i++){
      	int b = scanner.nextInt();
        list.add(b);
      }
      
      int count = 0;
      Boolean results = true;
      
      while(results){
        
          for(int j = 0; j < list.size(); j++ ){
            if(list.get(j) % 2 != 0){
              results = false;
              break;
            }
              list.set(j,list.get(j) / 2);
        }
        if(results){
          count += 1;
        }
      }
     System.out.println(count);
    } main {
	Scanner scanner = new Scanner(System.in);
      int n = scanner.nextInt();
      
      List<Integer> list = new ArrayList<>();
      
      for (int i = 0; i < n ; i++){
      	int b = scanner.nextInt();
        list.add(b);
      }
      
      int count = 0;
      Boolean results = true;
      
      while(results){
        
          for(int j = 0; j < list.size(); j++ ){
            if(list.get(j) % 2 != 0){
              results = false;
              break;
            }
              list.set(j,list.get(j) / 2);
        }
        if(results){
          count += 1;
        }
      }
     System.out.println(count);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner List<Integer> list = new ArrayList<>(); list new ArrayList<>() for (int i = 0; i < n ; i++){
      	int b = scanner.nextInt();
        list.add(b);
      } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      	int b = scanner.nextInt();
        list.add(b);
      } {
      	int b = scanner.nextInt();
        list.add(b);
      } int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner list.add(b) list.add list b int count = 0; count 0 Boolean results = true; results true while(results){
        
          for(int j = 0; j < list.size(); j++ ){
            if(list.get(j) % 2 != 0){
              results = false;
              break;
            }
              list.set(j,list.get(j) / 2);
        }
        if(results){
          count += 1;
        }
      } results {
        
          for(int j = 0; j < list.size(); j++ ){
            if(list.get(j) % 2 != 0){
              results = false;
              break;
            }
              list.set(j,list.get(j) / 2);
        }
        if(results){
          count += 1;
        }
      } for(int j = 0; j < list.size(); j++ ){
            if(list.get(j) % 2 != 0){
              results = false;
              break;
            }
              list.set(j,list.get(j) / 2);
        } int j = 0; int j = 0; j 0 j < list.size() j list.size() list.size list j++ j++ j {
            if(list.get(j) % 2 != 0){
              results = false;
              break;
            }
              list.set(j,list.get(j) / 2);
        } {
            if(list.get(j) % 2 != 0){
              results = false;
              break;
            }
              list.set(j,list.get(j) / 2);
        } if(list.get(j) % 2 != 0){
              results = false;
              break;
            } list.get(j) % 2 != 0 list.get(j) % 2 list.get(j) list.get list j 2 0 {
              results = false;
              break;
            } results = false results false break; list.set(j,list.get(j) / 2) list.set list j list.get(j) / 2 list.get(j) list.get list j 2 if(results){
          count += 1;
        } results {
          count += 1;
        } count += 1 count 1 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 scanner = new Scanner(System.in);
      int n = scanner.nextInt();
      
      List<Integer> list = new ArrayList<>();
      
      for (int i = 0; i < n ; i++){
      	int b = scanner.nextInt();
        list.add(b);
      }
      
      int count = 0;
      Boolean results = true;
      
      while(results){
        
          for(int j = 0; j < list.size(); j++ ){
            if(list.get(j) % 2 != 0){
              results = false;
              break;
            }
              list.set(j,list.get(j) / 2);
        }
        if(results){
          count += 1;
        }
      }
     System.out.println(count);
    }
} public class Main{
	public static void main(String[] args){
	Scanner scanner = new Scanner(System.in);
      int n = scanner.nextInt();
      
      List<Integer> list = new ArrayList<>();
      
      for (int i = 0; i < n ; i++){
      	int b = scanner.nextInt();
        list.add(b);
      }
      
      int count = 0;
      Boolean results = true;
      
      while(results){
        
          for(int j = 0; j < list.size(); j++ ){
            if(list.get(j) % 2 != 0){
              results = false;
              break;
            }
              list.set(j,list.get(j) / 2);
        }
        if(results){
          count += 1;
        }
      }
     System.out.println(count);
    }
} Main
import java.util.*;
 
public class Main{
	public static void main(String[] args){
	Scanner scanner = new Scanner(System.in);
      int n = scanner.nextInt();
      
      List<Integer> list = new ArrayList<>();
      
      for (int i = 0; i < n ; i++){
      	int b = scanner.nextInt();
        list.add(b);
      }
      
      int count = 0;
      Boolean results = true;
      
      while(results){
        
          for(int j = 0; j < list.size(); j++ ){
            if(list.get(j) % 2 != 0){
              results = false;
              break;
            }
              list.set(j,list.get(j) / 2);
        }
        if(results){
          count += 1;
        }
      }
     System.out.println(count);
    }
}