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>
using namespace std;
const int mod = 1e9 + 7;
char s[105];
int h[105], f[105][2];
int n, x;
struct Mat {
  int a[105][105];
  Mat() { memset(a, 0, sizeof a); }
  Mat operator*(const Mat &b) const {
    Mat res;
    for (int i = 0; i <= n + 1; i++)
      for (int j = 0; j <= n + 1; j++)
        for (int k = 0; k <= n + 1; k++)
          res.a[i][j] = (res.a[i][j] + 1ll * a[i][k] * b.a[k][j]) % mod;
    return res;
  }
} A[2], B;
int main() {
  scanf("%d %d", &n, &x);
  scanf("%s", s + 1);
  for (int i = 1; i <= n + 1; i++) s[i] -= '0';
  h[1] = 0;
  for (int i = 2, j = 0; i <= n; i++) {
    while (j && s[i] != s[j + 1]) j = h[j];
    if (s[j + 1] == s[i]) j++;
    h[i] = j;
  }
  for (int i = 0; i <= n; i++) {
    for (int j = 0; j < 2; j++) {
      if (s[i + 1] == j)
        f[i][j] = i + 1;
      else
        f[i][j] = f[h[i]][j];
    }
  }
  for (int i = 0; i < 2; i++) {
    for (int j = 0; j <= n; j++) {
      A[i].a[j][j] = 1;
      A[i].a[j][f[j][i]] += 1;
    }
    if (s[n] == i) {
      for (int j = 0; j <= n; j++) A[i].a[j][n + 1] += A[i].a[j][n];
      A[i].a[n][n + 1]--;
    }
    A[i].a[n + 1][n + 1] = 2;
  }
  if (x == 0) {
    printf("%d\n", A[0].a[0][n + 1]);
    return 0;
  }
  for (int i = 2; i <= x; i++) {
    B = A[1] * A[0];
    swap(A[0], A[1]);
    swap(A[1], B);
  }
  printf("%d\n", A[1].a[0][n + 1]);
}