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 INF = (int)1e9;
const int mod = (int)1e9 + 7;
const int MAXN = (int)3e5 + 5;
long long l[105][105][105];
long long r[105][105][105];
long long f[105][105][105];
long long ans[105];
long long fpw2[105];
void solve() {
  int n, x;
  cin >> n >> x;
  string s;
  cin >> s;
  fpw2[0] = fpw2[1] = 2;
  for (int i = 2; i < 105; i++) {
    fpw2[i] = fpw2[i - 1] * fpw2[i - 2] % mod;
  }
  for (int i = 0; i < n; i++) {
    if (s[i] == '0') {
      l[0][i][i] = 1;
      r[0][i][i] = 1;
      f[0][i][i] = 1;
    } else {
      l[1][i][i] = 1;
      r[1][i][i] = 1;
      f[1][i][i] = 1;
    }
  }
  if (n == 1 && s[0] == '0') ans[0] = 1;
  if (n == 1 && s[0] == '1') ans[1] = 1;
  for (int i = 2; i <= x; i++) {
    for (int j = 0; j < n; j++) {
      for (int c = j; c < n; c++) {
        for (int m = j; m < c; m++) {
          l[i][j][c] =
              (l[i][j][c] + (l[i - 1][j][m] * f[i - 2][m + 1][c] % mod)) % mod;
          r[i][j][c] =
              (r[i][j][c] + (f[i - 1][j][m] * r[i - 2][m + 1][c] % mod)) % mod;
          f[i][j][c] =
              (f[i][j][c] + (f[i - 1][j][m] * f[i - 2][m + 1][c] % mod)) % mod;
        }
        l[i][j][c] = ((l[i][j][c] + l[i - 1][j][c]) % mod +
                      (fpw2[i - 1] * l[i - 2][j][c]) % mod) %
                     mod;
        r[i][j][c] = ((r[i][j][c] + r[i - 2][j][c]) % mod +
                      (fpw2[i - 2] * r[i - 1][j][c]) % mod) %
                     mod;
        f[i][j][c] =
            ((f[i][j][c] + f[i - 1][j][c]) % mod + f[i - 2][j][c]) % mod;
      }
    }
    ans[i] =
        ((ans[i - 1] * fpw2[i - 2]) % mod + (ans[i - 2] * fpw2[i - 1] % mod)) %
        mod;
    for (int j = 0; j < n - 1; j++) {
      ans[i] = (ans[i] + (l[i - 1][0][j] * r[i - 2][j + 1][n - 1] % mod)) % mod;
    }
  }
  cout << ans[x] << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int t = 1;
  while (t--) {
    solve();
  }
}