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 = 105;
const long long mod = 1e9 + 7;
struct matrix {
  int n, m;
  long long a[N][N];
  matrix() : n(0), m(0) { memset(a, 0, sizeof a); }
  matrix(int n, int m) : n(n), m(m) { memset(a, 0, sizeof a); }
  void reset() {
    memset(a, 0, sizeof a);
    for (int i = 0; i < n; i++) a[i][i] = 1;
  }
  const long long* operator[](const int id) const { return a[id]; }
  long long* operator[](const int id) { return a[id]; }
  matrix operator*(const matrix& mat) const {
    matrix ret(this->n, mat.m);
    for (int i = 0; i < this->n; i++) {
      for (int j = 0; j < mat.m; j++) {
        long long& now = ret[i][j];
        now = 0;
        for (int k = 0; k < this->m; k++) {
          now = (now + this->a[i][k] * mat[k][j]) % mod;
        }
      }
    }
    return ret;
  }
  void print() {
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) cout << a[i][j] << " ";
      cout << endl;
    }
  }
  matrix operator^(long long pw) const {
    matrix ret(n, m), base = *this;
    ret.reset();
    while (pw) {
      if (pw & 1) ret = ret * base;
      base = base * base;
      pw >>= 1;
    }
    return ret;
  }
};
char s[N];
matrix f[N];
int main() {
  int n, x;
  scanf("%d %d", &n, &x);
  scanf("%s", s);
  matrix satu(n + 2, n + 2), nol(n + 2, n + 2);
  satu.reset();
  nol.reset();
  satu[n + 1][n + 1] = nol[n + 1][n + 1] = 2;
  string asli(s);
  for (int i = 0; i <= n; ++i) {
    string cur = asli.substr(0, i);
    string now = cur + "0";
    int z = min((int)now.size(), n);
    while (now.substr((int)now.size() - z, z) != asli.substr(0, z)) --z;
    ++nol[z][i];
    if (z == n) ++nol[z + 1][i];
    now = cur + "1";
    z = min((int)now.size(), n);
    while (now.substr((int)now.size() - z, z) != asli.substr(0, z)) --z;
    ++satu[z][i];
    if (z == n) ++satu[z + 1][i];
  }
  matrix basis(n + 2, 1);
  basis[0][0] = 1;
  f[0] = nol;
  f[1] = satu;
  for (int i = 2; i <= x; ++i) {
    f[i] = f[i - 2] * f[i - 1];
  }
  matrix res = f[x] * basis;
  printf("%d\n", res[n + 1][0]);
  return 0;
}