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 MOD = (int)1e9 + 7;
struct Matrix {
  const static int R = 102;
  int m[R][R];
  void init() { memset(m, 0, sizeof(m)); }
  inline Matrix operator*(const Matrix &a) const {
    Matrix ret;
    ret.init();
    for (int i = 0; i < R; i++) {
      for (int k = 0; k < R; k++) {
        if (!m[i][k]) continue;
        for (int j = 0; j < R; j++) {
          ret.m[i][j] = (ret.m[i][j] + 1ll * m[i][k] * a.m[k][j]) % MOD;
        }
      }
    }
    return ret;
  }
} m0, m1, tmp;
void get_next(char *s, int m, int *nxt) {
  int i, j;
  j = nxt[0] = -1;
  i = 0;
  while (i < m) {
    while (j != -1 && s[i] != s[j]) j = nxt[j];
    nxt[++i] = ++j;
  }
}
char str[111];
int nxt[111];
int a[111][2];
int main() {
  int n, m;
  scanf("%d%d", &n, &m);
  scanf("%s", str + 1);
  get_next(str + 1, n, nxt);
  if (m == 0) {
    printf("%d\n", str[1] == '0' && !str[2]);
    return 0;
  }
  for (int i = 0; i <= n; i++) m0.m[i][i] = 1, m1.m[i][i] = 1;
  m0.m[n + 1][n + 1] = 2, m1.m[n + 1][n + 1] = 2;
  for (int i = 0; i <= n; i++) {
    if (str[i + 1] == '0') {
      a[i][0] = i + 1;
    } else if (i > 0) {
      a[i][0] = a[nxt[i]][0];
    }
    if (str[i + 1] == '1') {
      a[i][1] = i + 1;
    } else if (i > 0) {
      a[i][1] = a[nxt[i]][1];
    }
  }
  for (int i = 0; i <= n; i++) {
    m0.m[i][a[i][0]]++;
    m1.m[i][a[i][1]]++;
    if (a[i][0] == n) m0.m[i][n + 1]++;
    if (a[i][1] == n) m1.m[i][n + 1]++;
  }
  for (int i = 1; i < m; i++) {
    m0 = m1 * m0;
    swap(m1, m0);
  }
  printf("%d\n", m1.m[0][n + 1]);
  return 0;
}