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 int maxn = 201, mod = (int)1e9 + 7, maxt = 18;
int n, m, nxt[maxn], f[2][maxn][maxn];
char buf[maxn];
int main() {
  scanf("%d%d%s", &n, &m, buf);
  clock_t t1 = clock();
  for (int i = 1, j; i < n; ++i) {
    for (j = nxt[i]; j && buf[j] != buf[i]; j = nxt[j])
      ;
    nxt[i + 1] = j + (buf[i] == buf[j]);
  }
  for (int i = 0; i < n; ++i) {
    ++f[0][i << 1][i << 1];
    ++f[0][i << 1 | 1][i << 1 | 1];
    int j = i;
    for (; j && buf[j] != '0'; j = nxt[j])
      ;
    j += buf[j] == '0';
    if (j < n) {
      ++f[0][i << 1][j << 1];
      ++f[0][i << 1 | 1][j << 1 | 1];
    } else {
      j = nxt[j];
      ++f[0][i << 1][j << 1];
      ++f[0][i << 1][j << 1 | 1];
      ++f[0][i << 1 | 1][j << 1 | 1];
    }
  }
  for (int i = 0; i < n; ++i) {
    ++f[1][i << 1][i << 1];
    ++f[1][i << 1 | 1][i << 1 | 1];
    int j = i;
    for (; j && buf[j] != '1'; j = nxt[j])
      ;
    j += buf[j] == '1';
    if (j < n) {
      ++f[1][i << 1][j << 1];
      ++f[1][i << 1 | 1][j << 1 | 1];
    } else {
      j = nxt[j];
      ++f[1][i << 1][j << 1];
      ++f[1][i << 1][j << 1 | 1];
      ++f[1][i << 1 | 1][j << 1 | 1];
    }
  }
  for (int i = 2; i <= m; ++i) {
    int pre = i & 1, cur = pre ^ 1;
    int(*F1)[maxn] = f[cur], (*F2)[maxn] = f[pre];
    static unsigned long long g[maxn][maxn];
    static int tim[maxn][maxn];
    for (int j = 0; j < n << 1; ++j)
      for (int k = 0; k < n << 1; ++k) g[j][k] = tim[j][k] = 0;
    for (int j = 0; j < n << 1; ++j)
      for (int k = 0; k < n << 1; ++k)
        if (F1[j][k])
          for (int l = 0; l < n << 1; ++l)
            if (F2[k][l]) {
              g[j][l] += (unsigned long long)F1[j][k] * F2[k][l];
              (++tim[j][l]) == maxt && (g[j][l] %= mod, tim[j][l] = 0);
            }
    for (int j = 0; j < n << 1; ++j)
      for (int k = 0; k < n << 1; ++k)
        F2[j][k] = tim[j][k] ? g[j][k] % mod : g[j][k];
  }
  int ans = 0, (*F)[maxn] = f[m & 1];
  for (int i = 0; i < n; ++i) (ans += F[0][i << 1 | 1]) >= mod && (ans -= mod);
  printf("%d\n", ans);
  clock_t t2 = clock();
  fprintf(stderr, "%f s\n", (t2 - t1) / (double)CLOCKS_PER_SEC);
  return 0;
}