import java.util.*;
public class Main {

  public static void main(String[] args) { 
      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();
        if(arr[i] % 2 == 0) cnt++;
        else break;
      }
      int times = 0;
      while(cnt == n) {
        cnt = 0;
        for(int i = 0; i < n; i++) {
          if(arr[i] % 2 == 0) { 
            arr[i] /= 2;
            cnt++;
          } else break;
        }
        if(cnt == n)
          times++;
      }
      System.out.println(times);
  }
} import java.util.*; util.* java public class Main {

  public static void main(String[] args) { 
      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();
        if(arr[i] % 2 == 0) cnt++;
        else break;
      }
      int times = 0;
      while(cnt == n) {
        cnt = 0;
        for(int i = 0; i < n; i++) {
          if(arr[i] % 2 == 0) { 
            arr[i] /= 2;
            cnt++;
          } else break;
        }
        if(cnt == n)
          times++;
      }
      System.out.println(times);
  }
} Main public static void main(String[] args) { 
      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();
        if(arr[i] % 2 == 0) cnt++;
        else break;
      }
      int times = 0;
      while(cnt == n) {
        cnt = 0;
        for(int i = 0; i < n; i++) {
          if(arr[i] % 2 == 0) { 
            arr[i] /= 2;
            cnt++;
          } else break;
        }
        if(cnt == n)
          times++;
      }
      System.out.println(times);
  } main { 
      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();
        if(arr[i] % 2 == 0) cnt++;
        else break;
      }
      int times = 0;
      while(cnt == n) {
        cnt = 0;
        for(int i = 0; i < n; i++) {
          if(arr[i] % 2 == 0) { 
            arr[i] /= 2;
            cnt++;
          } else break;
        }
        if(cnt == n)
          times++;
      }
      System.out.println(times);
  } 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();
        if(arr[i] % 2 == 0) cnt++;
        else break;
      } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        arr[i] = sc.nextInt();
        if(arr[i] % 2 == 0) cnt++;
        else break;
      } {
        arr[i] = sc.nextInt();
        if(arr[i] % 2 == 0) cnt++;
        else break;
      } arr[i] = sc.nextInt() arr[i] arr i sc.nextInt() sc.nextInt sc if(arr[i] % 2 == 0) cnt++;
        else break; arr[i] % 2 == 0 arr[i] % 2 arr[i] arr i 2 0 cnt++ cnt break; int times = 0; times 0 while(cnt == n) {
        cnt = 0;
        for(int i = 0; i < n; i++) {
          if(arr[i] % 2 == 0) { 
            arr[i] /= 2;
            cnt++;
          } else break;
        }
        if(cnt == n)
          times++;
      } cnt == n cnt n {
        cnt = 0;
        for(int i = 0; i < n; i++) {
          if(arr[i] % 2 == 0) { 
            arr[i] /= 2;
            cnt++;
          } else break;
        }
        if(cnt == n)
          times++;
      } cnt = 0 cnt 0 for(int i = 0; i < n; i++) {
          if(arr[i] % 2 == 0) { 
            arr[i] /= 2;
            cnt++;
          } else break;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
          if(arr[i] % 2 == 0) { 
            arr[i] /= 2;
            cnt++;
          } else break;
        } {
          if(arr[i] % 2 == 0) { 
            arr[i] /= 2;
            cnt++;
          } else break;
        } if(arr[i] % 2 == 0) { 
            arr[i] /= 2;
            cnt++;
          } else break; arr[i] % 2 == 0 arr[i] % 2 arr[i] arr i 2 0 { 
            arr[i] /= 2;
            cnt++;
          } arr[i] /= 2 arr[i] arr i 2 cnt++ cnt break; if(cnt == n)
          times++; cnt == n cnt n times++ times System.out.println(times) System.out.println System.out System System.out times String[] args args public class Main {

  public static void main(String[] args) { 
      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();
        if(arr[i] % 2 == 0) cnt++;
        else break;
      }
      int times = 0;
      while(cnt == n) {
        cnt = 0;
        for(int i = 0; i < n; i++) {
          if(arr[i] % 2 == 0) { 
            arr[i] /= 2;
            cnt++;
          } else break;
        }
        if(cnt == n)
          times++;
      }
      System.out.println(times);
  }
} public class Main {

  public static void main(String[] args) { 
      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();
        if(arr[i] % 2 == 0) cnt++;
        else break;
      }
      int times = 0;
      while(cnt == n) {
        cnt = 0;
        for(int i = 0; i < n; i++) {
          if(arr[i] % 2 == 0) { 
            arr[i] /= 2;
            cnt++;
          } else break;
        }
        if(cnt == n)
          times++;
      }
      System.out.println(times);
  }
} Main
import java.util.*;
public class Main {

  public static void main(String[] args) { 
      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();
        if(arr[i] % 2 == 0) cnt++;
        else break;
      }
      int times = 0;
      while(cnt == n) {
        cnt = 0;
        for(int i = 0; i < n; i++) {
          if(arr[i] % 2 == 0) { 
            arr[i] /= 2;
            cnt++;
          } else break;
        }
        if(cnt == n)
          times++;
      }
      System.out.println(times);
  }
}