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 MAXN = (int)103;
const int MOD = (int)1e9 + 7;
const int MOD2 = (int)1e9 + 6;
const int infint = (int)1e8 + 3;
const long long inf = (long long)1e18;
int n, x, dp1[MAXN][MAXN][MAXN], dp2[MAXN][MAXN][MAXN], oc[MAXN][MAXN][MAXN],
    fib[MAXN], pw[MAXN], ans[MAXN];
string s;
int sum(int a, int b) {
  int c = a + b;
  if (c < 0) c += MOD;
  if (c >= MOD) c -= MOD;
  return c;
}
int mul(int a, int b) {
  int c = 1LL * a * b % MOD;
  return c;
}
int pwr(int a, int b) {
  if (b == 0) return 1;
  if (b == 1) return a;
  int c = pwr(a, b / 2);
  c = mul(c, c);
  if (b % 2) c = mul(c, a);
  return c;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> x;
  cin >> s;
  fib[0] = 1, fib[1] = 1;
  for (int i = 2; i < MAXN; i++) fib[i] = (fib[i - 1] + fib[i - 2]) % MOD2;
  for (int i = 0; i < MAXN; i++) pw[i] = pwr(2, fib[i]);
  for (int i = 0; i < n; i++)
    if (s[i] == '0')
      oc[0][i][i + 1]++;
    else
      oc[1][i][i + 1]++;
  for (int t = 2; t <= x; t++)
    for (int i = 0; i < n; i++)
      for (int j = i + 1; j <= n; j++) {
        oc[t][i][j] = sum(oc[t - 1][i][j], oc[t - 2][i][j]);
        for (int l = i + 1; l < j; l++)
          oc[t][i][j] = sum(oc[t][i][j], mul(oc[t - 1][i][l], oc[t - 2][l][j]));
      }
  for (int i = 0; i < n; i++)
    if (s[i] == '0')
      dp1[0][i][i + 1]++, dp2[0][i][i + 1]++;
    else
      dp1[1][i][i + 1]++, dp2[1][i][i + 1]++;
  for (int t = 2; t <= x; t++)
    for (int i = 0; i < n; i++)
      for (int j = i + 1; j <= n; j++) {
        dp2[t][i][j] = sum(mul(dp2[t - 1][i][j], pw[t - 2]), dp2[t - 2][i][j]);
        for (int l = i + 1; l < j; l++)
          dp2[t][i][j] =
              sum(dp2[t][i][j], mul(oc[t - 1][i][l], dp2[t - 2][l][j]));
        dp1[t][i][j] = sum(dp1[t - 1][i][j], mul(pw[t - 1], dp1[t - 2][i][j]));
        for (int l = i + 1; l < j; l++)
          dp1[t][i][j] =
              sum(dp1[t][i][j], mul(dp1[t - 1][i][l], oc[t - 2][l][j]));
      }
  if (s == "0")
    ans[0] = 1;
  else if (s == "1")
    ans[1] = 1;
  for (int i = 2; i <= x; i++) {
    ans[i] = sum(mul(ans[i - 1], pw[i - 2]), mul(ans[i - 2], pw[i - 1]));
    for (int l = 1; l <= n; l++)
      ans[i] = sum(ans[i], mul(dp1[i - 1][0][l], dp2[i - 2][l][n]));
  }
  cout << ans[x];
}