import java.util.Scanner;

public class Main {
  public static int helper(String[] dataArr) {
    int minCount = 0;
    for (String number : dataArr) {
      int num = Integer.parseInt(number);
      int count = 0;
      while (num % 2 == 0) {
        num = num / 2;
        count++;
        if (minCount >= 1 && count >= minCount) break;
      }
      minCount = count;
      if (minCount == 0) return 0;
    }
    return minCount;
  }

  public static void main(String[] args) {
    Scanner dataScanner = new Scanner(System.in);
    dataScanner.nextLine();
    String data = dataScanner.nextLine();
    String[] dataArr = data.split(" ");
    int toOut = helper(dataArr);
    System.out.println(toOut);
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static int helper(String[] dataArr) {
    int minCount = 0;
    for (String number : dataArr) {
      int num = Integer.parseInt(number);
      int count = 0;
      while (num % 2 == 0) {
        num = num / 2;
        count++;
        if (minCount >= 1 && count >= minCount) break;
      }
      minCount = count;
      if (minCount == 0) return 0;
    }
    return minCount;
  }

  public static void main(String[] args) {
    Scanner dataScanner = new Scanner(System.in);
    dataScanner.nextLine();
    String data = dataScanner.nextLine();
    String[] dataArr = data.split(" ");
    int toOut = helper(dataArr);
    System.out.println(toOut);
  }
} Main public static int helper(String[] dataArr) {
    int minCount = 0;
    for (String number : dataArr) {
      int num = Integer.parseInt(number);
      int count = 0;
      while (num % 2 == 0) {
        num = num / 2;
        count++;
        if (minCount >= 1 && count >= minCount) break;
      }
      minCount = count;
      if (minCount == 0) return 0;
    }
    return minCount;
  } helper {
    int minCount = 0;
    for (String number : dataArr) {
      int num = Integer.parseInt(number);
      int count = 0;
      while (num % 2 == 0) {
        num = num / 2;
        count++;
        if (minCount >= 1 && count >= minCount) break;
      }
      minCount = count;
      if (minCount == 0) return 0;
    }
    return minCount;
  } int minCount = 0; minCount 0 for (String number : dataArr) {
      int num = Integer.parseInt(number);
      int count = 0;
      while (num % 2 == 0) {
        num = num / 2;
        count++;
        if (minCount >= 1 && count >= minCount) break;
      }
      minCount = count;
      if (minCount == 0) return 0;
    } String number dataArr {
      int num = Integer.parseInt(number);
      int count = 0;
      while (num % 2 == 0) {
        num = num / 2;
        count++;
        if (minCount >= 1 && count >= minCount) break;
      }
      minCount = count;
      if (minCount == 0) return 0;
    } {
      int num = Integer.parseInt(number);
      int count = 0;
      while (num % 2 == 0) {
        num = num / 2;
        count++;
        if (minCount >= 1 && count >= minCount) break;
      }
      minCount = count;
      if (minCount == 0) return 0;
    } int num = Integer.parseInt(number); num Integer.parseInt(number) Integer.parseInt Integer number int count = 0; count 0 while (num % 2 == 0) {
        num = num / 2;
        count++;
        if (minCount >= 1 && count >= minCount) break;
      } num % 2 == 0 num % 2 num 2 0 {
        num = num / 2;
        count++;
        if (minCount >= 1 && count >= minCount) break;
      } num = num / 2 num num / 2 num 2 count++ count if (minCount >= 1 && count >= minCount) break; minCount >= 1 && count >= minCount minCount >= 1 minCount 1 count >= minCount count minCount break; minCount = count minCount count if (minCount == 0) return 0; minCount == 0 minCount 0 return 0; 0 return minCount; minCount String[] dataArr dataArr public static void main(String[] args) {
    Scanner dataScanner = new Scanner(System.in);
    dataScanner.nextLine();
    String data = dataScanner.nextLine();
    String[] dataArr = data.split(" ");
    int toOut = helper(dataArr);
    System.out.println(toOut);
  } main {
    Scanner dataScanner = new Scanner(System.in);
    dataScanner.nextLine();
    String data = dataScanner.nextLine();
    String[] dataArr = data.split(" ");
    int toOut = helper(dataArr);
    System.out.println(toOut);
  } Scanner dataScanner = new Scanner(System.in); dataScanner new Scanner(System.in) dataScanner.nextLine() dataScanner.nextLine dataScanner String data = dataScanner.nextLine(); data dataScanner.nextLine() dataScanner.nextLine dataScanner String[] dataArr = data.split(" "); dataArr data.split(" ") data.split data " " int toOut = helper(dataArr); toOut helper(dataArr) helper dataArr System.out.println(toOut) System.out.println System.out System System.out toOut String[] args args public class Main {
  public static int helper(String[] dataArr) {
    int minCount = 0;
    for (String number : dataArr) {
      int num = Integer.parseInt(number);
      int count = 0;
      while (num % 2 == 0) {
        num = num / 2;
        count++;
        if (minCount >= 1 && count >= minCount) break;
      }
      minCount = count;
      if (minCount == 0) return 0;
    }
    return minCount;
  }

  public static void main(String[] args) {
    Scanner dataScanner = new Scanner(System.in);
    dataScanner.nextLine();
    String data = dataScanner.nextLine();
    String[] dataArr = data.split(" ");
    int toOut = helper(dataArr);
    System.out.println(toOut);
  }
} public class Main {
  public static int helper(String[] dataArr) {
    int minCount = 0;
    for (String number : dataArr) {
      int num = Integer.parseInt(number);
      int count = 0;
      while (num % 2 == 0) {
        num = num / 2;
        count++;
        if (minCount >= 1 && count >= minCount) break;
      }
      minCount = count;
      if (minCount == 0) return 0;
    }
    return minCount;
  }

  public static void main(String[] args) {
    Scanner dataScanner = new Scanner(System.in);
    dataScanner.nextLine();
    String data = dataScanner.nextLine();
    String[] dataArr = data.split(" ");
    int toOut = helper(dataArr);
    System.out.println(toOut);
  }
} Main
import java.util.Scanner;

public class Main {
  public static int helper(String[] dataArr) {
    int minCount = 0;
    for (String number : dataArr) {
      int num = Integer.parseInt(number);
      int count = 0;
      while (num % 2 == 0) {
        num = num / 2;
        count++;
        if (minCount >= 1 && count >= minCount) break;
      }
      minCount = count;
      if (minCount == 0) return 0;
    }
    return minCount;
  }

  public static void main(String[] args) {
    Scanner dataScanner = new Scanner(System.in);
    dataScanner.nextLine();
    String data = dataScanner.nextLine();
    String[] dataArr = data.split(" ");
    int toOut = helper(dataArr);
    System.out.println(toOut);
  }
}