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 N = 200;
const long long MOD = 1e9 + 7;
int n, x;
char s[N];
long long dp[N][N][N], dp_l[N][N], dp_r[N][N], dp_s[N];
long long solve() {
  for (int l = 1; l <= n; l++) {
    int c = s[l] - '0';
    dp[c][l][l] = 1;
  }
  for (int t = 2; t <= x; t++) {
    for (int len = 1; len <= n; len++) {
      for (int l = 1; l + len - 1 <= n; l++) {
        int r = l + len - 1;
        for (int mid = l; mid < r; mid++) {
          dp[t][l][r] =
              (dp[t][l][r] + dp[t - 1][l][mid] * dp[t - 2][mid + 1][r] % MOD) %
              MOD;
        }
        dp[t][l][r] = (dp[t][l][r] + dp[t - 2][l][r] + dp[t - 1][l][r]) % MOD;
      }
    }
  }
  dp_l[0][0] = dp_l[1][0] = 1;
  for (int t = 2; t <= x; t++) {
    dp_l[t][0] =
        ((dp_l[t - 1][0] + 1) * (dp_l[t - 2][0] + 1) % MOD - 1 + MOD) % MOD;
  }
  for (int t = 2; t <= x; t++) {
    for (int r = 1; r <= n; r++) {
      for (int l = 1; l <= r; l++) {
        dp_l[t][r] =
            (dp_l[t][r] + dp_l[t - 1][l - 1] * dp[t - 2][l][r] % MOD) % MOD;
      }
      dp_l[t][r] = (dp_l[t][r] + dp_l[t - 1][r] +
                    (dp_l[t - 1][0] + 1) * dp_l[t - 2][r] % MOD) %
                   MOD;
    }
  }
  dp_r[0][n + 1] = dp_r[1][n + 1] = 1;
  for (int t = 2; t <= x; t++) {
    dp_r[t][n + 1] =
        ((dp_r[t - 1][n + 1] + 1) * (dp_r[t - 2][n + 1] + 1) % MOD - 1 + MOD) %
        MOD;
  }
  for (int t = 2; t <= x; t++) {
    for (int l = 1; l <= n; l++) {
      for (int r = l; r <= n; r++) {
        dp_r[t][l] =
            (dp_r[t][l] + dp[t - 1][l][r] * dp_r[t - 2][r + 1] % MOD) % MOD;
      }
      dp_r[t][l] =
          (dp_r[t][l] + dp_r[t - 1][l] * (dp_r[t - 2][n + 1] + 1) % MOD +
           dp_r[t - 2][l]) %
          MOD;
    }
  }
  for (int t = 2; t <= x; t++) {
    for (int i = 0; i <= n; i++) {
      dp_s[t] = (dp_s[t] + dp_l[t - 1][i] * dp_r[t - 2][i + 1] % MOD) % MOD;
    }
    dp_s[t] = (dp_s[t] + (dp_l[t - 1][0] + 1) * dp_s[t - 2] % MOD) % MOD;
    dp_s[t] = (dp_s[t] + dp_s[t - 1] * (dp_r[t - 2][n + 1] + 1) % MOD) % MOD;
  }
  long long ans = (dp_s[x] + dp[x][1][n] + dp_l[x][n] + dp_r[x][1]) % MOD;
  return ans;
}
int main() {
  scanf("%d %d %s", &n, &x, s + 1);
  printf("%lld\n", solve());
}