Problem: Devu wants to decorate his garden with flowers. He has purchased n boxes, where the i-th box contains fi flowers. All flowers in a single box are of the same color (hence they are indistinguishable). Also, no two boxes have flowers of the same color.

Now Devu wants to select exactly s flowers from the boxes to decorate his garden. Devu would like to know, in how many different ways can he select the flowers from each box? Since this number may be very large, he asks you to find the number modulo (109 + 7). 

Devu considers two ways different if there is at least one box from which different number of flowers are selected in these two ways.

Input

The first line of input contains two space-separated integers n and s (1 ≤ n ≤ 20, 0 ≤ s ≤ 1014).

The second line contains n space-separated integers f1, f2, ... fn (0 ≤ fi ≤ 1012).

Output

Output a single integer — the number of ways in which Devu can select the flowers modulo (109 + 7).

Examples

Input

2 3
1 3


Output

2


Input

2 4
2 2


Output

1


Input

3 5
1 3 2


Output

3

Note

Sample 1. There are two ways of selecting 3 flowers: {1, 2} and {0, 3}.

Sample 2. There is only one way of selecting 4 flowers: {2, 2}.

Sample 3. There are three ways of selecting 5 flowers: {1, 2, 2}, {0, 3, 2}, and {1, 3, 1}.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
void fastWrite(FILE *ofp, int x) {
  int i = 12;
  char buff[i];
  buff[i] = 0;
  int neg = 0;
  if (x < 0) {
    x = -x;
    neg = 1;
  }
  if (x == 0)
    buff[--i] = '0';
  else
    while (x != 0) {
      buff[--i] = (x % 10) + '0';
      x /= 10;
    }
  if (neg) buff[--i] = '-';
  fwrite(buff + i, sizeof(char), (12 - i), ofp);
}
void fastSpace(FILE *ofp) { fwrite(" ", sizeof(char), 1, ofp); }
void fastNewLine(FILE *ofp) { fwrite("\n", sizeof(char), 1, ofp); }
int comp(long long int f, long long int s) {
  return (((f - s) == 0) ? 0 : (((f - s) < 0) ? -1 : 1));
}
void sort(long long int *arr, int size) {
  int i;
  if (size < 6) {
    int nSize = 0;
    while (size != 0) {
      nSize = 0;
      for (i = 0; i < size - 1; i++)
        if (comp(arr[i], arr[i + 1]) > 0) {
          nSize = i + 1;
          long long int tmp = arr[i];
          arr[i] = arr[i + 1];
          arr[i + 1] = tmp;
        }
      size = nSize;
    }
    return;
  }
  long long int *tmp = (long long int *)calloc(size, sizeof(long long int));
  int lSize = (size >> 1);
  int rSize = size - lSize;
  sort(arr, lSize);
  sort(arr + lSize, rSize);
  int lPtr = 0, rPtr = 0;
  int ptr = 0;
  while (ptr != size) {
    if (lPtr == lSize)
      tmp[ptr] = arr[lSize + (rPtr++)];
    else if (rPtr == rSize || comp(arr[lPtr], arr[lSize + rPtr]) <= 0)
      tmp[ptr] = arr[lPtr++];
    else
      tmp[ptr] = arr[lSize + (rPtr++)];
    ptr++;
  }
  for (i = 0; i < size; i++) arr[i] = tmp[i];
  free(tmp);
}
long long int invert(long long int a) {
  if (a == 0) return 1;
  if (a == 1) return 1;
  return 1000000007 - ((1000000007 / a) * invert(1000000007 % a)) % 1000000007;
}
int main(void) {
  long long int n, a[25], i, j, s, s2, inv = 1, ans = 0, tans, mult;
  scanf("%I64d", &(n));
  scanf("%I64d", &(s));
  for (i = (int)(0); i <= (int)(n - 1); i++) {
    scanf("%I64d", &(a[i]));
    inv *= invert(i);
    inv %= 1000000007;
  }
  for (i = (int)(0); i <= (int)((1 << n) - 1); i++) {
    s2 = s;
    mult = 1;
    for (j = (int)(0); j <= (int)(n - 1); j++) {
      if ((1 << j) & i) {
        mult = -mult;
        s2 -= a[j] + 1;
      }
    }
    if (s2 < 0) continue;
    s2 += n - 1;
    tans = inv;
    for (j = (int)(0); j <= (int)(n - 2); j++) {
      tans *= (s2 - j) % 1000000007;
      tans %= 1000000007;
    }
    ans += mult * tans;
  }
  ans = (ans % 1000000007 + 1000000007) % 1000000007;
  printf("%I64d\n", (ans));
  return 0;
}