import java.util.*;

public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    
    List<Integer> As = new ArrayList<>();
    
    int bit = 0;
    for (int i=0; i<N; i++) {
        bit = bit | sc.nextInt();
    }
    
    System.out.println(Integer.numberOfTrailingZeros(bit));
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    
    List<Integer> As = new ArrayList<>();
    
    int bit = 0;
    for (int i=0; i<N; i++) {
        bit = bit | sc.nextInt();
    }
    
    System.out.println(Integer.numberOfTrailingZeros(bit));
  }
} Main public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    
    List<Integer> As = new ArrayList<>();
    
    int bit = 0;
    for (int i=0; i<N; i++) {
        bit = bit | sc.nextInt();
    }
    
    System.out.println(Integer.numberOfTrailingZeros(bit));
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    
    List<Integer> As = new ArrayList<>();
    
    int bit = 0;
    for (int i=0; i<N; i++) {
        bit = bit | sc.nextInt();
    }
    
    System.out.println(Integer.numberOfTrailingZeros(bit));
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc List<Integer> As = new ArrayList<>(); As new ArrayList<>() int bit = 0; bit 0 for (int i=0; i<N; i++) {
        bit = bit | sc.nextInt();
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
        bit = bit | sc.nextInt();
    } {
        bit = bit | sc.nextInt();
    } bit = bit | sc.nextInt() bit bit | sc.nextInt() bit sc.nextInt() sc.nextInt sc System.out.println(Integer.numberOfTrailingZeros(bit)) System.out.println System.out System System.out Integer.numberOfTrailingZeros(bit) Integer.numberOfTrailingZeros Integer bit String[] args args public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    
    List<Integer> As = new ArrayList<>();
    
    int bit = 0;
    for (int i=0; i<N; i++) {
        bit = bit | sc.nextInt();
    }
    
    System.out.println(Integer.numberOfTrailingZeros(bit));
  }
} public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    
    List<Integer> As = new ArrayList<>();
    
    int bit = 0;
    for (int i=0; i<N; i++) {
        bit = bit | sc.nextInt();
    }
    
    System.out.println(Integer.numberOfTrailingZeros(bit));
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    
    List<Integer> As = new ArrayList<>();
    
    int bit = 0;
    for (int i=0; i<N; i++) {
        bit = bit | sc.nextInt();
    }
    
    System.out.println(Integer.numberOfTrailingZeros(bit));
  }
}
