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 = 1000 * 1000 * 1000 + 7;
int add(int x, int y) {
  int z = x + y;
  while (z >= MOD) z -= MOD;
  return z;
}
int mul(int x, int y) { return (x * 1ll * y) % MOD; }
vector<int> mul(const vector<int>& a, const vector<vector<int> >& b) {
  int n = a.size();
  vector<int> c(n, 0);
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) c[i] = add(c[i], mul(a[j], b[j][i]));
  return c;
}
vector<vector<int> > mul(const vector<vector<int> >& a,
                         const vector<vector<int> >& b) {
  int n = a.size();
  vector<vector<int> > c(n, vector<int>(n, 0));
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++)
      for (int k = 0; k < n; k++) c[i][k] = add(c[i][k], mul(a[i][j], b[j][k]));
  return c;
}
int main() {
  int x, n;
  cin >> n >> x;
  string s;
  cin >> s;
  vector<int> p(n);
  for (int i = 1; i < n; i++) {
    int j = p[i - 1];
    while (s[j] != s[i] && j > 0) {
      j = p[j - 1];
    }
    if (s[j] == s[i]) j++;
    p[i] = j;
  }
  vector<vector<int> > a(n + 1, vector<int>(2, 0));
  a[n][0] = a[n][1] = n;
  for (int i = 0; i <= n; i++) {
    if (s[i] == '0')
      a[i][0] = i + 1;
    else if (i > 0)
      a[i][0] = a[p[i - 1]][0];
    if (s[i] == '1')
      a[i][1] = i + 1;
    else if (i > 0)
      a[i][1] = a[p[i - 1]][1];
  }
  vector<int> v(n + 2, 0);
  v[0] = 1;
  vector<vector<vector<int> > > f;
  vector<vector<int> > f0(n + 2, vector<int>(n + 2, 0));
  for (int i = 0; i < n + 1; i++) {
    f0[i][i] = add(f0[i][i], 1);
    int z = a[i][0];
    f0[i][z] = add(f0[i][z], 1);
    if (z == n) f0[i][n + 1] = add(f0[i][n + 1], 1);
  }
  f0[n + 1][n + 1] = add(f0[n + 1][n + 1], 2);
  vector<vector<int> > f1(n + 2, vector<int>(n + 2, 0));
  for (int i = 0; i < n + 1; i++) {
    f1[i][i] = add(f1[i][i], 1);
    int z = a[i][1];
    f1[i][z] = add(f1[i][z], 1);
    if (z == n) f1[i][n + 1] = add(f1[i][n + 1], 1);
  }
  f1[n + 1][n + 1] = add(f1[n + 1][n + 1], 2);
  f.push_back(f0);
  f.push_back(f1);
  for (int i = 2; i <= x; i++) f.push_back(mul(f[i - 1], f[i - 2]));
  v = mul(v, f[x]);
  cout << v.back() << endl;
  return 0;
}