import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int A[] = new int[N];
    int count = 0;
    boolean bool = true;
    for(int i=0; i<N; i++) {
      A[i] = sc.nextInt();
      if(A[i] % 2 != 0){
        bool = false;
      }
    }
    while(bool) {
      for(int j=0; j<N; j++) {
        A[j] = A[j] / 2;
          if(A[j] % 2 != 0) {
            bool = false;
          }
      }
      count++;
    }
    System.out.println(count);
  }
} 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 A[] = new int[N];
    int count = 0;
    boolean bool = true;
    for(int i=0; i<N; i++) {
      A[i] = sc.nextInt();
      if(A[i] % 2 != 0){
        bool = false;
      }
    }
    while(bool) {
      for(int j=0; j<N; j++) {
        A[j] = A[j] / 2;
          if(A[j] % 2 != 0) {
            bool = false;
          }
      }
      count++;
    }
    System.out.println(count);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int A[] = new int[N];
    int count = 0;
    boolean bool = true;
    for(int i=0; i<N; i++) {
      A[i] = sc.nextInt();
      if(A[i] % 2 != 0){
        bool = false;
      }
    }
    while(bool) {
      for(int j=0; j<N; j++) {
        A[j] = A[j] / 2;
          if(A[j] % 2 != 0) {
            bool = false;
          }
      }
      count++;
    }
    System.out.println(count);
  } main {
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int A[] = new int[N];
    int count = 0;
    boolean bool = true;
    for(int i=0; i<N; i++) {
      A[i] = sc.nextInt();
      if(A[i] % 2 != 0){
        bool = false;
      }
    }
    while(bool) {
      for(int j=0; j<N; j++) {
        A[j] = A[j] / 2;
          if(A[j] % 2 != 0) {
            bool = false;
          }
      }
      count++;
    }
    System.out.println(count);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int A[] = new int[N]; A new int[N] N int count = 0; count 0 boolean bool = true; bool true for(int i=0; i<N; i++) {
      A[i] = sc.nextInt();
      if(A[i] % 2 != 0){
        bool = false;
      }
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      A[i] = sc.nextInt();
      if(A[i] % 2 != 0){
        bool = false;
      }
    } {
      A[i] = sc.nextInt();
      if(A[i] % 2 != 0){
        bool = false;
      }
    } A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc if(A[i] % 2 != 0){
        bool = false;
      } A[i] % 2 != 0 A[i] % 2 A[i] A i 2 0 {
        bool = false;
      } bool = false bool false while(bool) {
      for(int j=0; j<N; j++) {
        A[j] = A[j] / 2;
          if(A[j] % 2 != 0) {
            bool = false;
          }
      }
      count++;
    } bool {
      for(int j=0; j<N; j++) {
        A[j] = A[j] / 2;
          if(A[j] % 2 != 0) {
            bool = false;
          }
      }
      count++;
    } for(int j=0; j<N; j++) {
        A[j] = A[j] / 2;
          if(A[j] % 2 != 0) {
            bool = false;
          }
      } int j=0; int j=0; j 0 j<N j N j++ j++ j {
        A[j] = A[j] / 2;
          if(A[j] % 2 != 0) {
            bool = false;
          }
      } {
        A[j] = A[j] / 2;
          if(A[j] % 2 != 0) {
            bool = false;
          }
      } A[j] = A[j] / 2 A[j] A j A[j] / 2 A[j] A j 2 if(A[j] % 2 != 0) {
            bool = false;
          } A[j] % 2 != 0 A[j] % 2 A[j] A j 2 0 {
            bool = false;
          } bool = false bool false count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int A[] = new int[N];
    int count = 0;
    boolean bool = true;
    for(int i=0; i<N; i++) {
      A[i] = sc.nextInt();
      if(A[i] % 2 != 0){
        bool = false;
      }
    }
    while(bool) {
      for(int j=0; j<N; j++) {
        A[j] = A[j] / 2;
          if(A[j] % 2 != 0) {
            bool = false;
          }
      }
      count++;
    }
    System.out.println(count);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int A[] = new int[N];
    int count = 0;
    boolean bool = true;
    for(int i=0; i<N; i++) {
      A[i] = sc.nextInt();
      if(A[i] % 2 != 0){
        bool = false;
      }
    }
    while(bool) {
      for(int j=0; j<N; j++) {
        A[j] = A[j] / 2;
          if(A[j] % 2 != 0) {
            bool = false;
          }
      }
      count++;
    }
    System.out.println(count);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int A[] = new int[N];
    int count = 0;
    boolean bool = true;
    for(int i=0; i<N; i++) {
      A[i] = sc.nextInt();
      if(A[i] % 2 != 0){
        bool = false;
      }
    }
    while(bool) {
      for(int j=0; j<N; j++) {
        A[j] = A[j] / 2;
          if(A[j] % 2 != 0) {
            bool = false;
          }
      }
      count++;
    }
    System.out.println(count);
  }
}