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;
template <class T>
bool uin(T &a, T b) {
  return (a > b ? a = b, true : false);
}
template <class T>
bool uax(T &a, T b) {
  return (a < b ? a = b, true : false);
}
int const MOD = 1e9 + 7;
int const MAXN = 141;
void add(int &a, int b) {
  a += b;
  if (a >= MOD) a -= MOD;
}
int mul(int a, int b) { return (long long)a * b % MOD; }
char s[MAXN];
int n, x, two[MAXN];
int d[MAXN], dpref[MAXN][MAXN][MAXN][2], dsuf[MAXN][MAXN][MAXN][2];
void init() {
  two[0] = two[1] = 2;
  for (int i = 2; i <= MAXN - 1; ++i) {
    two[i] = mul(two[i - 1], two[i - 2]);
  }
}
void sfib(int n) {
  if (n == 0) {
    cerr << '0';
    return;
  }
  if (n == 1) {
    cerr << '1';
    return;
  }
  sfib(n - 1);
  sfib(n - 2);
}
void buildpref() {
  for (int i = 0; i <= n - 1; ++i) {
    if (s[i] == '0') {
      dpref[0][i][i][0] = dpref[0][i][i][1] = 1;
    } else {
      dpref[1][i][i][0] = dpref[1][i][i][1] = 1;
    }
  }
  for (int i = 2; i <= x; ++i) {
    for (int l = 0; l < n; l++) {
      for (int r = l; r < n; r++) {
        add(dpref[i][l][r][0], dpref[i - 1][l][r][0]);
        add(dpref[i][l][r][0], dpref[i - 2][l][r][0]);
        for (int k = l; k < r; k++) {
          add(dpref[i][l][r][0],
              mul(dpref[i - 1][l][k][0], dpref[i - 2][k + 1][r][0]));
        }
      }
    }
  }
  for (int i = 2; i <= x; ++i) {
    for (int l = 0; l < n; l++) {
      for (int r = l; r < n; r++) {
        add(dpref[i][l][r][1], mul(dpref[i - 1][l][r][1], two[i - 2]));
        add(dpref[i][l][r][1], dpref[i - 2][l][r][1]);
        for (int k = l; k < r; k++) {
          add(dpref[i][l][r][1],
              mul(dpref[i - 1][l][k][0], dpref[i - 2][k + 1][r][1]));
        }
      }
    }
  }
}
void buildsuf() {
  for (int i = 0; i <= n - 1; ++i) {
    if (s[i] == '0') {
      dsuf[0][i][i][1] = 1;
    } else {
      dsuf[1][i][i][1] = 1;
    }
  }
  for (int i = 0; i <= x; ++i) {
    for (int l = 0; l < n; l++) {
      for (int r = l; r < n; r++) {
        dsuf[i][l][r][0] = dpref[i][l][r][0];
      }
    }
  }
  for (int i = 2; i <= x; ++i) {
    for (int l = 0; l < n; l++) {
      for (int r = l; r < n; r++) {
        add(dsuf[i][l][r][1], dsuf[i - 1][l][r][1]);
        add(dsuf[i][l][r][1], mul(dsuf[i - 2][l][r][1], two[i - 1]));
        for (int k = l; k < r; k++) {
          add(dsuf[i][l][r][1],
              mul(dsuf[i - 1][l][k][1], dsuf[i - 2][k + 1][r][0]));
        }
      }
    }
  }
}
void solve() {
  init();
  buildpref();
  buildsuf();
  if (n == 1) {
    if (s[0] == '0') {
      d[0] = 1;
    } else {
      d[1] = 1;
    }
  }
  for (int i = 2; i <= x; ++i) {
    add(d[i], mul(d[i - 1], two[i - 2]));
    add(d[i], mul(d[i - 2], two[i - 1]));
    for (int j = 0; j <= n - 2; ++j) {
      add(d[i], mul(dsuf[i - 1][0][j][1], dpref[i - 2][j + 1][n - 1][1]));
    }
  }
  printf("%d\n", d[x]);
}
int main() {
  scanf("%d %d", &n, &x);
  scanf("%s", s);
  solve();
  return 0;
}