import java.util.Scanner;

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 rc = 0;
    boolean execFlg = true;
    
    for (int i=0;i<n;i++) {
      A[i] = sc.nextInt();
    }
    
    while (execFlg) {      
      for (int j=0;j<n;j++) {
        if (A[j]%2 == 0) {
          A[j] = A[j]/2;
        } else {
          execFlg = false;
          break;
        }
      }
      
      if (execFlg) {
        rc = rc + 1;
      }
    }
    
    System.out.println(rc);
  }
} 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 A[] = new int[n];
    int rc = 0;
    boolean execFlg = true;
    
    for (int i=0;i<n;i++) {
      A[i] = sc.nextInt();
    }
    
    while (execFlg) {      
      for (int j=0;j<n;j++) {
        if (A[j]%2 == 0) {
          A[j] = A[j]/2;
        } else {
          execFlg = false;
          break;
        }
      }
      
      if (execFlg) {
        rc = rc + 1;
      }
    }
    
    System.out.println(rc);
  }
} Main public static void main(String args[]) {
    
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int A[] = new int[n];
    int rc = 0;
    boolean execFlg = true;
    
    for (int i=0;i<n;i++) {
      A[i] = sc.nextInt();
    }
    
    while (execFlg) {      
      for (int j=0;j<n;j++) {
        if (A[j]%2 == 0) {
          A[j] = A[j]/2;
        } else {
          execFlg = false;
          break;
        }
      }
      
      if (execFlg) {
        rc = rc + 1;
      }
    }
    
    System.out.println(rc);
  } main {
    
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int A[] = new int[n];
    int rc = 0;
    boolean execFlg = true;
    
    for (int i=0;i<n;i++) {
      A[i] = sc.nextInt();
    }
    
    while (execFlg) {      
      for (int j=0;j<n;j++) {
        if (A[j]%2 == 0) {
          A[j] = A[j]/2;
        } else {
          execFlg = false;
          break;
        }
      }
      
      if (execFlg) {
        rc = rc + 1;
      }
    }
    
    System.out.println(rc);
  } 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 rc = 0; rc 0 boolean execFlg = true; execFlg true for (int i=0;i<n;i++) {
      A[i] = sc.nextInt();
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      A[i] = sc.nextInt();
    } {
      A[i] = sc.nextInt();
    } A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc while (execFlg) {      
      for (int j=0;j<n;j++) {
        if (A[j]%2 == 0) {
          A[j] = A[j]/2;
        } else {
          execFlg = false;
          break;
        }
      }
      
      if (execFlg) {
        rc = rc + 1;
      }
    } execFlg {      
      for (int j=0;j<n;j++) {
        if (A[j]%2 == 0) {
          A[j] = A[j]/2;
        } else {
          execFlg = false;
          break;
        }
      }
      
      if (execFlg) {
        rc = rc + 1;
      }
    } for (int j=0;j<n;j++) {
        if (A[j]%2 == 0) {
          A[j] = A[j]/2;
        } else {
          execFlg = false;
          break;
        }
      } int j=0; int j=0; j 0 j<n j n j++ j++ j {
        if (A[j]%2 == 0) {
          A[j] = A[j]/2;
        } else {
          execFlg = false;
          break;
        }
      } {
        if (A[j]%2 == 0) {
          A[j] = A[j]/2;
        } else {
          execFlg = false;
          break;
        }
      } if (A[j]%2 == 0) {
          A[j] = A[j]/2;
        } else {
          execFlg = false;
          break;
        } A[j]%2 == 0 A[j]%2 A[j] A j 2 0 {
          A[j] = A[j]/2;
        } A[j] = A[j]/2 A[j] A j A[j]/2 A[j] A j 2 {
          execFlg = false;
          break;
        } execFlg = false execFlg false break; if (execFlg) {
        rc = rc + 1;
      } execFlg {
        rc = rc + 1;
      } rc = rc + 1 rc rc + 1 rc 1 System.out.println(rc) System.out.println System.out System System.out rc 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 rc = 0;
    boolean execFlg = true;
    
    for (int i=0;i<n;i++) {
      A[i] = sc.nextInt();
    }
    
    while (execFlg) {      
      for (int j=0;j<n;j++) {
        if (A[j]%2 == 0) {
          A[j] = A[j]/2;
        } else {
          execFlg = false;
          break;
        }
      }
      
      if (execFlg) {
        rc = rc + 1;
      }
    }
    
    System.out.println(rc);
  }
} 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 rc = 0;
    boolean execFlg = true;
    
    for (int i=0;i<n;i++) {
      A[i] = sc.nextInt();
    }
    
    while (execFlg) {      
      for (int j=0;j<n;j++) {
        if (A[j]%2 == 0) {
          A[j] = A[j]/2;
        } else {
          execFlg = false;
          break;
        }
      }
      
      if (execFlg) {
        rc = rc + 1;
      }
    }
    
    System.out.println(rc);
  }
} 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 A[] = new int[n];
    int rc = 0;
    boolean execFlg = true;
    
    for (int i=0;i<n;i++) {
      A[i] = sc.nextInt();
    }
    
    while (execFlg) {      
      for (int j=0;j<n;j++) {
        if (A[j]%2 == 0) {
          A[j] = A[j]/2;
        } else {
          execFlg = false;
          break;
        }
      }
      
      if (execFlg) {
        rc = rc + 1;
      }
    }
    
    System.out.println(rc);
  }
}