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;
short Print_Array[20];
template <typename T>
inline void print(T x, char tm = '\n') {
  if (x < 0) putchar('-'), x = -x;
  short sz = 0;
  while (x) Print_Array[sz++] = x % 10, x /= 10;
  if (sz == 0) putchar('0');
  for (int i = sz - 1; i >= 0; i--) putchar('0' + Print_Array[i]);
  putchar(tm);
}
template <typename T>
void cma(T &a, T b) {
  if (b > a) a = b;
}
template <typename T>
void cmi(T &a, T b) {
  if (b < a) a = b;
}
const double eps = 1e-9;
const int oo = 0x3f3f3f3f;
const long long OO = 0x3f3f3f3f3f3f3f3f, mod = 1e9 + 7;
using namespace std;
const int modo = 1000000007;
struct matrix {
  int a[101][101];
  matrix(int t = 1) {
    int i, j;
    for (i = 0; i < 101; i++) {
      for (j = 0; j < 101; j++) {
        if (i == j) {
          a[i][j] = t;
        } else {
          a[i][j] = 0;
        }
      }
    }
  }
  friend matrix operator*(const matrix &a, const matrix &b) {
    matrix c(0);
    int i, j, k;
    for (i = 0; i < 101; i++) {
      for (j = 0; j < 101; j++) {
        for (k = 0; k < 101; k++) {
          c.a[i][k] = (c.a[i][k] + (long long)a.a[i][j] * b.a[j][k]) % modo;
        }
      }
    }
    return c;
  }
};
matrix a[105];
matrix init;
char b[105];
int main() {
  int n, k;
  scanf("%d%d", &n, &k);
  scanf("%s", b);
  int i;
  for (i = 0; i < n; i++) {
    if (b[i] == '0') {
      a[0].a[i][i + 1]++;
      if (i == n - 1) {
        int j;
        for (j = i - 1; j >= 0; j--) {
          int k;
          for (k = 0; k <= j; k++) {
            if (b[k] != b[i - j + k]) break;
          }
          if (k > j) break;
        }
        a[0].a[i][j + 1]++;
      }
      int j;
      for (j = i - 1; j >= 0; j--) {
        if (b[j] != '1') continue;
        int k;
        for (k = 0; k < j; k++) {
          if (b[k] != b[i - j + k]) break;
        }
        if (k == j) break;
      }
      a[1].a[i][j + 1]++;
    } else {
      a[1].a[i][i + 1]++;
      if (i == n - 1) {
        int j;
        for (j = i - 1; j >= 0; j--) {
          int k;
          for (k = 0; k <= j; k++) {
            if (b[k] != b[i - j + k]) break;
          }
          if (k > j) break;
        }
        a[1].a[i][j + 1]++;
      }
      int j;
      for (j = i - 1; j >= 0; j--) {
        if (b[j] != '0') continue;
        int k;
        for (k = 0; k < j; k++) {
          if (b[k] != b[i - j + k]) break;
        }
        if (k == j) break;
      }
      a[0].a[i][j + 1]++;
    }
  }
  a[0].a[n][n]++;
  a[1].a[n][n]++;
  for (i = 2; i <= k; i++) {
    a[i] = a[i - 1] * a[i - 2];
  }
  printf("%d\n", a[k].a[0][n]);
  return 0;
}