import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int b = 0;
    for(int cnt = 0; cnt < n; cnt++){
      b |= sc.nextInt();
    }
    System.out.println(Integer.numberOfTrailingZeros(b));
    sc.close();
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int b = 0;
    for(int cnt = 0; cnt < n; cnt++){
      b |= sc.nextInt();
    }
    System.out.println(Integer.numberOfTrailingZeros(b));
    sc.close();
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int b = 0;
    for(int cnt = 0; cnt < n; cnt++){
      b |= sc.nextInt();
    }
    System.out.println(Integer.numberOfTrailingZeros(b));
    sc.close();
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int b = 0;
    for(int cnt = 0; cnt < n; cnt++){
      b |= sc.nextInt();
    }
    System.out.println(Integer.numberOfTrailingZeros(b));
    sc.close();
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int b = 0; b 0 for(int cnt = 0; cnt < n; cnt++){
      b |= sc.nextInt();
    } int cnt = 0; int cnt = 0; cnt 0 cnt < n cnt n cnt++ cnt++ cnt {
      b |= sc.nextInt();
    } {
      b |= sc.nextInt();
    } b |= sc.nextInt() b sc.nextInt() sc.nextInt sc System.out.println(Integer.numberOfTrailingZeros(b)) System.out.println System.out System System.out Integer.numberOfTrailingZeros(b) Integer.numberOfTrailingZeros Integer b sc.close() sc.close sc String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int b = 0;
    for(int cnt = 0; cnt < n; cnt++){
      b |= sc.nextInt();
    }
    System.out.println(Integer.numberOfTrailingZeros(b));
    sc.close();
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int b = 0;
    for(int cnt = 0; cnt < n; cnt++){
      b |= sc.nextInt();
    }
    System.out.println(Integer.numberOfTrailingZeros(b));
    sc.close();
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int b = 0;
    for(int cnt = 0; cnt < n; cnt++){
      b |= sc.nextInt();
    }
    System.out.println(Integer.numberOfTrailingZeros(b));
    sc.close();
  }
}