Problem: You are given a binary string s (each character of this string is either 0 or 1).

Let's denote the cost of string t as the number of occurences of s in t. For example, if s is 11 and t is 111011, then the cost of t is 3.

Let's also denote the Fibonacci strings sequence as follows:

  * F(0) is 0;
  * F(1) is 1;
  * F(i) = F(i - 1) + F(i - 2) if i > 1, where  +  means the concatenation of two strings.



Your task is to calculate the sum of costs of all subsequences of the string F(x). Since answer may be large, calculate it modulo 109 + 7.

Input

The first line contains two integers n and x (1 ≤ n ≤ 100, 0 ≤ x ≤ 100) — the length of s and the index of a Fibonacci string you are interested in, respectively.

The second line contains s — a string consisting of n characters. Each of these characters is either 0 or 1.

Output

Print the only integer — the sum of costs of all subsequences of the string F(x), taken modulo 109 + 7. 

Examples

Input

2 4
11


Output

14


Input

10 100
1010101010


Output

553403224

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
const int lbt = 1e9 + 7;
struct matrix {
  long long a[102][102];
  int sz;
  matrix() { sz = 0; }
  void init(int sz) {
    this->sz = sz;
    for (int i = 1; i <= sz; i++) {
      for (int j = 1; j <= sz; j++) {
        a[i][j] = 0;
      }
    }
  }
};
matrix multiply(matrix m1, matrix m2);
char str[102];
matrix f[101];
int main() {
  int n, x;
  scanf("%d%d", &n, &x);
  scanf("%s", str + 1);
  for (int i = 0; i <= x; i++) {
    f[i].init(n + 1);
  }
  for (int i = 1; i <= n; i++) {
    if (str[i] == '0') {
      f[0].a[i][i + 1] = 1;
    } else {
      f[1].a[i][i + 1] = 1;
    }
    f[0].a[i][i] = f[1].a[i][i] = 1;
  }
  f[0].a[1][1] = f[1].a[1][1] = f[0].a[n + 1][n + 1] = f[1].a[n + 1][n + 1] = 2;
  for (int i = 2; i <= x; i++) {
    f[i] = multiply(f[i - 1], f[i - 2]);
  }
  printf("%d", f[x].a[1][n + 1]);
  return 0;
}
matrix multiply(matrix m1, matrix m2) {
  matrix ans;
  ans.init(m1.sz);
  for (int i = 1; i <= m1.sz; i++) {
    for (int j = 1; j <= m1.sz; j++) {
      for (int k = 1; k <= m1.sz; k++) {
        ans.a[i][j] += ((m1.a[i][k] % lbt) * (m2.a[k][j] % lbt)) % lbt;
        ans.a[i][j] %= lbt;
      }
    }
  }
  return ans;
}