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>
const bool DEBUG = false;
using namespace std;
const long long maxn = 100 + 5;
const long long INF = 1e18;
const long long M = 1e9 + 7;
const int lg = 21;
long long n, x, f[maxn], p[maxn], dp[maxn][maxn][maxn], suf[maxn][maxn][maxn],
    pre[maxn][maxn][maxn], kol[maxn][maxn][maxn];
string s;
long long POW(long long a, long long b) {
  if (b == 0) return 1;
  long long p = POW(a, b / 2);
  p = p * p % M;
  if (b & 1) p = p * a % M;
  return p;
}
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> n >> x >> s;
  f[0] = f[1] = 2;
  for (int i = 2; i < maxn; i++) f[i] = (f[i - 1] * f[i - 2]) % M;
  for (int i = 0; i < n; i++) {
    if (s[i] == '0')
      dp[0][i][i] = pre[0][i][i] = suf[0][i][i] = kol[0][i][i] = 1;
    else
      dp[1][i][i] = pre[1][i][i] = suf[1][i][i] = kol[1][i][i] = 1;
  }
  for (int i = 2; i <= x; i++) {
    for (int l = 0; l < n; l++)
      for (int r = l; r < n; r++) {
        kol[i][l][r] = (kol[i - 1][l][r] + kol[i - 2][l][r]) % M;
        suf[i][l][r] = (suf[i - 1][l][r] + suf[i - 2][l][r] * f[i - 1] % M) % M;
        dp[i][l][r] =
            (dp[i - 1][l][r] * f[i - 2] % M + dp[i - 2][l][r] * f[i - 1] % M) %
            M;
        pre[i][l][r] = (pre[i - 1][l][r] * f[i - 2] % M + pre[i - 2][l][r]) % M;
        for (int p = l; p < r; p++) {
          pre[i][l][r] =
              (pre[i][l][r] + kol[i - 1][l][p] * pre[i - 2][p + 1][r] % M) % M;
          suf[i][l][r] =
              (suf[i][l][r] + suf[i - 1][l][p] * kol[i - 2][p + 1][r] % M) % M;
          dp[i][l][r] =
              (dp[i][l][r] + suf[i - 1][l][p] * pre[i - 2][p + 1][r] % M) % M;
          kol[i][l][r] =
              (kol[i][l][r] + kol[i - 1][l][p] * kol[i - 2][p + 1][r] % M) % M;
        }
      }
  }
  cout << dp[x][0][n - 1] << endl;
  return 0;
}