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 MOD = 1000000007;
string s;
int n, first;
long long dp[102][102][102], f[102], prv[102][102][102], suf[102][102][102],
    seq[102][102][102];
inline void read() { cin >> n >> first >> s; }
inline void prec() {
  f[0] = 2;
  f[1] = 2;
  for (int i = 2; i <= first; ++i) {
    f[i] = (f[i - 1] * f[i - 2]) % MOD;
  }
  for (int i = 0; i < 2; ++i) {
    for (int j = 0; j < n; ++j) {
      if (static_cast<int>(s[j] - '0') == i) {
        dp[i][j][j] = 1;
        prv[i][j][j] = 1;
        suf[i][j][j] = 1;
        seq[i][j][j] = 1;
      }
    }
  }
}
inline void getAns() {
  for (int k = 2; k <= first; ++k) {
    for (int l = 0; l < n; ++l) {
      for (int r = l; r < n; ++r) {
        seq[k][l][r] = (seq[k - 1][l][r] + seq[k - 2][l][r]) % MOD;
        prv[k][l][r] = (prv[k - 1][l][r] + prv[k - 2][l][r] * f[k - 1]) % MOD;
        suf[k][l][r] = (suf[k - 2][l][r] + suf[k - 1][l][r] * f[k - 2]) % MOD;
        dp[k][l][r] = (f[k - 1] * dp[k - 2][l][r]) % MOD;
        dp[k][l][r] = (dp[k][l][r] + f[k - 2] * dp[k - 1][l][r]) % MOD;
        for (int m = l; m < r; ++m) {
          seq[k][l][r] =
              (seq[k][l][r] + seq[k - 1][l][m] * seq[k - 2][m + 1][r]) % MOD;
          prv[k][l][r] =
              (prv[k][l][r] + prv[k - 1][l][m] * seq[k - 2][m + 1][r]) % MOD;
          suf[k][l][r] =
              (suf[k][l][r] + seq[k - 1][l][m] * suf[k - 2][m + 1][r]) % MOD;
          dp[k][l][r] =
              (dp[k][l][r] + prv[k - 1][l][m] * suf[k - 2][m + 1][r]) % MOD;
        }
      }
    }
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  read();
  prec();
  getAns();
  cout << dp[first][0][n - 1] << '\n';
}