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;
long long len[110], lim[110], p2[110];
long long pow1(long long a, long long b, long long mod) {
  if (b == 0) return 1 % mod;
  long long ret = pow1(a, b / 2, mod);
  ret = (ret * ret) % mod;
  if (b & 1) ret = (a * ret) % mod;
  return ret;
}
string s;
long long dp[110][110][110];
int main() {
  int n, x, i, j, k;
  scanf("%d", &n);
  scanf("%d", &x);
  cin >> s;
  memset(dp, 0, sizeof(dp));
  for (i = 0; i < n; i++) {
    if (s[i] == '0')
      dp[0][i][i] = 1;
    else
      dp[1][i][i] = 1;
  }
  len[0] = len[1] = lim[0] = lim[1] = 1;
  p2[0] = p2[1] = 2;
  for (i = 2; i <= x; i++) {
    len[i] = (len[i - 1] + len[i - 2]) % (1000000007 - 1);
    lim[i] = lim[i - 1] + lim[i - 2];
    if (lim[i] > 110) lim[i] = 110;
    p2[i] = pow1(2, len[i], 1000000007);
    for (j = 0; j < n; j++)
      for (k = j; k < n; k++) {
        if (k - j + 1 > lim[i]) continue;
        for (int l = 0; l <= k - j + 1; l++) {
          long long t;
          if (l == 0) {
            t = dp[i - 2][j][k];
            if (j == 0) t = t * p2[i - 1] % 1000000007;
          } else if (l == k - j + 1) {
            t = dp[i - 1][j][k];
            if (k == n - 1) t = t * p2[i - 2] % 1000000007;
          } else
            t = dp[i - 1][j][j + l - 1] * dp[i - 2][j + l][k] % 1000000007;
          dp[i][j][k] = (dp[i][j][k] + t) % 1000000007;
        }
      }
  }
  printf("%lld\n", dp[x][0][n - 1]);
}