import java.util.*;

public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] arr = new int[N];
    int cnt = 0;

    for (int i = 0; i < N; i++) {
      arr[i] = sc.nextInt();
    }

    while (true) {
      boolean isOdd = true;
      for (int i = 0; i < arr.length; i++) {
        if (arr[i] % 2 == 0) {
          arr[i] = arr[i] / 2;
        } else {
          isOdd = false;
        }
      }
      if (!isOdd) break;
      cnt++;
    }
    System.out.println(cnt);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] arr = new int[N];
    int cnt = 0;

    for (int i = 0; i < N; i++) {
      arr[i] = sc.nextInt();
    }

    while (true) {
      boolean isOdd = true;
      for (int i = 0; i < arr.length; i++) {
        if (arr[i] % 2 == 0) {
          arr[i] = arr[i] / 2;
        } else {
          isOdd = false;
        }
      }
      if (!isOdd) break;
      cnt++;
    }
    System.out.println(cnt);
  }
} Main public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] arr = new int[N];
    int cnt = 0;

    for (int i = 0; i < N; i++) {
      arr[i] = sc.nextInt();
    }

    while (true) {
      boolean isOdd = true;
      for (int i = 0; i < arr.length; i++) {
        if (arr[i] % 2 == 0) {
          arr[i] = arr[i] / 2;
        } else {
          isOdd = false;
        }
      }
      if (!isOdd) break;
      cnt++;
    }
    System.out.println(cnt);
  } main {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] arr = new int[N];
    int cnt = 0;

    for (int i = 0; i < N; i++) {
      arr[i] = sc.nextInt();
    }

    while (true) {
      boolean isOdd = true;
      for (int i = 0; i < arr.length; i++) {
        if (arr[i] % 2 == 0) {
          arr[i] = arr[i] / 2;
        } else {
          isOdd = false;
        }
      }
      if (!isOdd) break;
      cnt++;
    }
    System.out.println(cnt);
  } @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] arr = new int[N]; arr new int[N] N int cnt = 0; cnt 0 for (int i = 0; i < N; i++) {
      arr[i] = sc.nextInt();
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      arr[i] = sc.nextInt();
    } {
      arr[i] = sc.nextInt();
    } arr[i] = sc.nextInt() arr[i] arr i sc.nextInt() sc.nextInt sc while (true) {
      boolean isOdd = true;
      for (int i = 0; i < arr.length; i++) {
        if (arr[i] % 2 == 0) {
          arr[i] = arr[i] / 2;
        } else {
          isOdd = false;
        }
      }
      if (!isOdd) break;
      cnt++;
    } true {
      boolean isOdd = true;
      for (int i = 0; i < arr.length; i++) {
        if (arr[i] % 2 == 0) {
          arr[i] = arr[i] / 2;
        } else {
          isOdd = false;
        }
      }
      if (!isOdd) break;
      cnt++;
    } boolean isOdd = true; isOdd true for (int i = 0; i < arr.length; i++) {
        if (arr[i] % 2 == 0) {
          arr[i] = arr[i] / 2;
        } else {
          isOdd = false;
        }
      } int i = 0; int i = 0; i 0 i < arr.length i arr.length arr arr.length i++ i++ i {
        if (arr[i] % 2 == 0) {
          arr[i] = arr[i] / 2;
        } else {
          isOdd = false;
        }
      } {
        if (arr[i] % 2 == 0) {
          arr[i] = arr[i] / 2;
        } else {
          isOdd = false;
        }
      } if (arr[i] % 2 == 0) {
          arr[i] = arr[i] / 2;
        } else {
          isOdd = false;
        } arr[i] % 2 == 0 arr[i] % 2 arr[i] arr i 2 0 {
          arr[i] = arr[i] / 2;
        } arr[i] = arr[i] / 2 arr[i] arr i arr[i] / 2 arr[i] arr i 2 {
          isOdd = false;
        } isOdd = false isOdd false if (!isOdd) break; !isOdd isOdd break; cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] arr = new int[N];
    int cnt = 0;

    for (int i = 0; i < N; i++) {
      arr[i] = sc.nextInt();
    }

    while (true) {
      boolean isOdd = true;
      for (int i = 0; i < arr.length; i++) {
        if (arr[i] % 2 == 0) {
          arr[i] = arr[i] / 2;
        } else {
          isOdd = false;
        }
      }
      if (!isOdd) break;
      cnt++;
    }
    System.out.println(cnt);
  }
} public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] arr = new int[N];
    int cnt = 0;

    for (int i = 0; i < N; i++) {
      arr[i] = sc.nextInt();
    }

    while (true) {
      boolean isOdd = true;
      for (int i = 0; i < arr.length; i++) {
        if (arr[i] % 2 == 0) {
          arr[i] = arr[i] / 2;
        } else {
          isOdd = false;
        }
      }
      if (!isOdd) break;
      cnt++;
    }
    System.out.println(cnt);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] arr = new int[N];
    int cnt = 0;

    for (int i = 0; i < N; i++) {
      arr[i] = sc.nextInt();
    }

    while (true) {
      boolean isOdd = true;
      for (int i = 0; i < arr.length; i++) {
        if (arr[i] % 2 == 0) {
          arr[i] = arr[i] / 2;
        } else {
          isOdd = false;
        }
      }
      if (!isOdd) break;
      cnt++;
    }
    System.out.println(cnt);
  }
}