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 long long int modulo = 1e9 + 7;
void anyade(long long int &a, long long int b) { a = (a + b) % modulo; }
const int limite = 105;
long long int expolen[limite];
long long int numsub[limite][limite][limite];
long long int numpre[limite][limite][limite];
long long int numsuf[limite][limite][limite];
long long int numman[limite][limite][limite];
int main() {
  int n, x;
  cin >> n >> x;
  string s;
  cin >> s;
  expolen[0] = expolen[1] = 2;
  for (int j1 = 0; j1 < n; j1++) {
    numsub[0][j1][j1] = s[j1] == '0';
    numsub[1][j1][j1] = s[j1] == '1';
    numpre[0][j1][j1] = s[j1] == '0';
    numpre[1][j1][j1] = s[j1] == '1';
    numsuf[0][j1][j1] = s[j1] == '0';
    numsuf[1][j1][j1] = s[j1] == '1';
    numman[0][j1][j1] = s[j1] == '0';
    numman[1][j1][j1] = s[j1] == '1';
  }
  for (int i = 2; i <= x; i++) {
    expolen[i] = expolen[i - 1] * expolen[i - 2] % modulo;
    for (int j1 = 0; j1 < n; j1++) {
      for (int j2 = j1; j2 < n; j2++) {
        {
          long long int &ns = numsub[i][j1][j2];
          anyade(ns, numsub[i - 1][j1][j2] + numsub[i - 2][j1][j2]);
          for (int j = j1; j < j2; j++)
            anyade(ns, numsub[i - 1][j1][j] * numsub[i - 2][j + 1][j2]);
        }
        {
          long long int &np = numpre[i][j1][j2];
          anyade(np, numpre[i - 1][j1][j2] * expolen[i - 2] +
                         numpre[i - 2][j1][j2]);
          for (int j = j1; j < j2; j++)
            anyade(np, numsub[i - 1][j1][j] * numpre[i - 2][j + 1][j2]);
        }
        {
          long long int &ns = numsuf[i][j1][j2];
          anyade(ns, numsuf[i - 1][j1][j2] +
                         expolen[i - 1] * numsuf[i - 2][j1][j2]);
          for (int j = j1; j < j2; j++)
            anyade(ns, numsuf[i - 1][j1][j] * numsub[i - 2][j + 1][j2]);
        }
        {
          long long int &nm = numman[i][j1][j2];
          anyade(nm, numman[i - 1][j1][j2] * expolen[i - 2] +
                         expolen[i - 1] * numman[i - 2][j1][j2]);
          for (int j = j1; j < j2; j++)
            anyade(nm, numsuf[i - 1][j1][j] * numpre[i - 2][j + 1][j2]);
        }
      }
    }
  }
  cout << numman[x][0][n - 1] << endl;
}