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