import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int number = scanner.nextInt();

    int[] input_number_list = new int[number];
    boolean is_even = true;
    int count = 0;

    for(int i = 0; i < number; i++){
      input_number_list[i] = scanner.nextInt();
    }

    while(is_even){
      for(int j = 0;j < input_number_list.length;j++){
        if(input_number_list[j] % 2 != 0){
          is_even = false;
          break;
        }
        input_number_list[j] = input_number_list[j]/2;
      } 
      if(is_even) count++;
    }
    System.out.println(count);
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int number = scanner.nextInt();

    int[] input_number_list = new int[number];
    boolean is_even = true;
    int count = 0;

    for(int i = 0; i < number; i++){
      input_number_list[i] = scanner.nextInt();
    }

    while(is_even){
      for(int j = 0;j < input_number_list.length;j++){
        if(input_number_list[j] % 2 != 0){
          is_even = false;
          break;
        }
        input_number_list[j] = input_number_list[j]/2;
      } 
      if(is_even) count++;
    }
    System.out.println(count);
  }
} Main public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int number = scanner.nextInt();

    int[] input_number_list = new int[number];
    boolean is_even = true;
    int count = 0;

    for(int i = 0; i < number; i++){
      input_number_list[i] = scanner.nextInt();
    }

    while(is_even){
      for(int j = 0;j < input_number_list.length;j++){
        if(input_number_list[j] % 2 != 0){
          is_even = false;
          break;
        }
        input_number_list[j] = input_number_list[j]/2;
      } 
      if(is_even) count++;
    }
    System.out.println(count);
  } main {
    Scanner scanner = new Scanner(System.in);
    int number = scanner.nextInt();

    int[] input_number_list = new int[number];
    boolean is_even = true;
    int count = 0;

    for(int i = 0; i < number; i++){
      input_number_list[i] = scanner.nextInt();
    }

    while(is_even){
      for(int j = 0;j < input_number_list.length;j++){
        if(input_number_list[j] % 2 != 0){
          is_even = false;
          break;
        }
        input_number_list[j] = input_number_list[j]/2;
      } 
      if(is_even) count++;
    }
    System.out.println(count);
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int number = scanner.nextInt(); number scanner.nextInt() scanner.nextInt scanner int[] input_number_list = new int[number]; input_number_list new int[number] number boolean is_even = true; is_even true int count = 0; count 0 for(int i = 0; i < number; i++){
      input_number_list[i] = scanner.nextInt();
    } int i = 0; int i = 0; i 0 i < number i number i++ i++ i {
      input_number_list[i] = scanner.nextInt();
    } {
      input_number_list[i] = scanner.nextInt();
    } input_number_list[i] = scanner.nextInt() input_number_list[i] input_number_list i scanner.nextInt() scanner.nextInt scanner while(is_even){
      for(int j = 0;j < input_number_list.length;j++){
        if(input_number_list[j] % 2 != 0){
          is_even = false;
          break;
        }
        input_number_list[j] = input_number_list[j]/2;
      } 
      if(is_even) count++;
    } is_even {
      for(int j = 0;j < input_number_list.length;j++){
        if(input_number_list[j] % 2 != 0){
          is_even = false;
          break;
        }
        input_number_list[j] = input_number_list[j]/2;
      } 
      if(is_even) count++;
    } for(int j = 0;j < input_number_list.length;j++){
        if(input_number_list[j] % 2 != 0){
          is_even = false;
          break;
        }
        input_number_list[j] = input_number_list[j]/2;
      } int j = 0; int j = 0; j 0 j < input_number_list.length j input_number_list.length input_number_list input_number_list.length j++ j++ j {
        if(input_number_list[j] % 2 != 0){
          is_even = false;
          break;
        }
        input_number_list[j] = input_number_list[j]/2;
      } {
        if(input_number_list[j] % 2 != 0){
          is_even = false;
          break;
        }
        input_number_list[j] = input_number_list[j]/2;
      } if(input_number_list[j] % 2 != 0){
          is_even = false;
          break;
        } input_number_list[j] % 2 != 0 input_number_list[j] % 2 input_number_list[j] input_number_list j 2 0 {
          is_even = false;
          break;
        } is_even = false is_even false break; input_number_list[j] = input_number_list[j]/2 input_number_list[j] input_number_list j input_number_list[j]/2 input_number_list[j] input_number_list j 2 if(is_even) count++; is_even count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int number = scanner.nextInt();

    int[] input_number_list = new int[number];
    boolean is_even = true;
    int count = 0;

    for(int i = 0; i < number; i++){
      input_number_list[i] = scanner.nextInt();
    }

    while(is_even){
      for(int j = 0;j < input_number_list.length;j++){
        if(input_number_list[j] % 2 != 0){
          is_even = false;
          break;
        }
        input_number_list[j] = input_number_list[j]/2;
      } 
      if(is_even) count++;
    }
    System.out.println(count);
  }
}