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;
clock_t start;
void Time(bool timeIt) {
  if (!timeIt) return;
  clock_t end = clock();
  double elapsed_time = ((double)end - (double)start) / (double)CLOCKS_PER_SEC;
  printf("Time elapsed = %0.4lf\n", elapsed_time);
}
long long dp[4][110][110][110], mod = 1000000007ll;
char s[110];
long long exp(long long b, long long e) {
  long long ret = 1;
  while (e > 0) {
    if (e & 1) ret = (ret * b) % mod;
    b = (b * b) % mod;
    e >>= 1;
  }
  return ret;
}
int main() {
  start = clock();
  int n, x;
  long long f1 = 2, f0 = 2;
  scanf("%d %d %s", &n, &x, s + 1);
  for (int i = 1; i <= n; ++i) {
    for (int j = 1; j <= n; ++j) {
      for (int k = 0; k <= x; ++k) {
        for (int u = 0; u < 4; ++u) dp[u][i][j][k] = 0;
      }
    }
  }
  for (int i = 1; i <= n; ++i) {
    for (int j = 0; j < 4; ++j) {
      dp[j][i][i][0] = (s[i] == '0');
      dp[j][i][i][1] = (s[i] == '1');
    }
  }
  for (int idx = 2; idx <= x; ++idx) {
    for (int len = 1; len <= n; ++len) {
      for (int l = 1; l <= n - len + 1; ++l) {
        int r = l + len - 1;
        dp[0][l][l - 1][idx - 1] = f1;
        dp[1][r + 1][r][idx - 2] = f0;
        dp[3][l][l - 1][idx - 1] = dp[3][r + 1][r][idx - 2] = 1;
        for (int i = l - 1; i <= r; ++i) {
          if (i != l - 1)
            dp[0][l][r][idx] +=
                (dp[0][l][i][idx - 1] * dp[3][i + 1][r][idx - 2]) % mod;
          else
            dp[0][l][r][idx] += (f1 * dp[0][l][r][idx - 2]) % mod;
          if (i != r)
            dp[1][l][r][idx] +=
                (dp[3][l][i][idx - 1] * dp[1][i + 1][r][idx - 2]) % mod;
          else
            dp[1][l][r][idx] += (dp[1][l][r][idx - 1] * f0) % mod;
          if (i != l - 1 && i != r)
            dp[2][l][r][idx] +=
                (dp[0][l][i][idx - 1] * dp[1][i + 1][r][idx - 2]) % mod;
          dp[3][l][r][idx] +=
              (dp[3][l][i][idx - 1] * dp[3][i + 1][r][idx - 2]) % mod;
          for (int j = 0; j < 4; ++j) {
            long long *ptr = &dp[j][l][r][idx];
            if (*ptr >= mod) *ptr -= mod;
          }
        }
        dp[2][l][r][idx] += (dp[2][l][r][idx - 1] * f0) % mod;
        if (dp[2][l][r][idx] >= mod) dp[2][l][r][idx] -= mod;
        dp[2][l][r][idx] += (f1 * dp[2][l][r][idx - 2]) % mod;
        if (dp[2][l][r][idx] >= mod) dp[2][l][r][idx] -= mod;
      }
    }
    long long temp = f1;
    f1 = (f1 * f0) % mod;
    f0 = temp;
  }
  printf("%lld\n", dp[2][1][n][x]);
  Time(false);
  return 0;
}