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>
long long power(int a, int k) {
  long long p;
  if (k == 0) return 1;
  p = power(a, k >> 1);
  p = p * p % 1000000007;
  if (k & 1) p = p * a % 1000000007;
  return p;
}
int main() {
  static int ff[100 + 1], ds[100 + 1][100][100 + 1], dp[100 + 1][100],
      dq[100 + 1][100], dr[100 + 1];
  static char cc[100 + 1];
  int n, x, i, l, r, m;
  scanf("%d%d%s", &n, &x, cc);
  if (x == 0) {
    printf("%d\n", n == 1 && cc[0] == '0');
    return 0;
  }
  ff[0] = ff[1] = 1;
  for (i = 2; i <= x; i++) ff[i] = (ff[i - 1] + ff[i - 2]) % (1000000007 - 1);
  for (i = 0; i <= x; i++) ff[i] = power(2, ff[i]);
  for (l = 0; l < n; l++) {
    ds[0][l][l] = ds[1][l][l] = 1;
    ds[0][l][l + 1] = cc[l] == '0' ? 1 : 0;
    ds[1][l][l + 1] = cc[l] == '1' ? 1 : 0;
  }
  for (i = 2; i <= x; i++)
    for (l = 0; l < n; l++)
      for (r = l; r < n; r++) {
        long long z = 0;
        for (m = l; m <= r; m++)
          z = (z + (long long)ds[i - 1][l][m] * ds[i - 2][m][r]) % 1000000007;
        ds[i][l][r] = z;
      }
  if (n > 1) {
    dp[0][n - 1] = ds[0][n - 1][n];
    dp[1][n - 1] = ds[1][n - 1][n];
    for (i = 2; i <= x; i++)
      for (l = 1; l < n; l++) {
        long long z = (long long)dp[i - 1][l] * ff[i - 2] % 1000000007;
        for (m = l; m < n; m++)
          z = (z + (long long)ds[i - 1][l][m] * dp[i - 2][m]) % 1000000007;
        dp[i][l] = z;
      }
    dq[0][1] = ds[0][0][1];
    dq[1][1] = ds[1][0][1];
    for (i = 2; i <= x; i++)
      for (r = 1; r < n; r++) {
        long long z = (long long)ff[i - 1] * dq[i - 2][r] % 1000000007;
        for (m = r; m > 0; m--)
          z = (z + (long long)dq[i - 1][m] * ds[i - 2][m][r]) % 1000000007;
        dq[i][r] = z;
      }
  }
  dr[0] = ds[0][0][n];
  dr[1] = ds[1][0][n];
  for (i = 2; i <= x; i++) {
    long long z =
        ((long long)dr[i - 1] * ff[i - 2] + (long long)ff[i - 1] * dr[i - 2]) %
        1000000007;
    for (m = 1; m < n; m++)
      z = (z + (long long)dq[i - 1][m] * dp[i - 2][m]) % 1000000007;
    dr[i] = z;
  }
  printf("%d\n", dr[x]);
  return 0;
}