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 = 111, P = 1000000007;
char s[maxn];
int n, m, N;
void init() {
  scanf("%d%d", &n, &m);
  scanf("%s", s + 1);
}
struct Tmx {
  int a[maxn][maxn];
  void write() {
    puts("");
    puts("---------------------");
    for (int i = 0; i <= N; ++i, cerr << endl)
      for (int j = 0; j <= N; ++j) cerr << a[i][j] << ' ';
    puts("---------------------");
    puts("");
  }
} f[maxn];
Tmx operator*(Tmx &a, Tmx &b) {
  Tmx c;
  for (int i = 0; i <= N; ++i)
    for (int j = 0; j <= N; ++j) c.a[i][j] = 0;
  for (int i = 0; i <= N; ++i)
    for (int k = 0; k <= N; ++k)
      for (int j = 0; j <= N; ++j)
        c.a[i][j] = (c.a[i][j] + 1LL * a.a[i][k] * b.a[k][j]) % P;
  return c;
}
void work() {
  static int Next[maxn], Go[maxn][3];
  Next[1] = 0;
  N = n + 1;
  for (int i = 2; i <= n; ++i) {
    int tmp = Next[i - 1];
    while (tmp && s[tmp + 1] != s[i]) tmp = Next[tmp];
    if (s[tmp + 1] == s[i])
      Next[i] = tmp + 1;
    else
      Next[i] = 0;
  }
  for (int i = 0; i <= n; ++i) {
    for (int j = '0'; j <= '1'; ++j) {
      int tmp = i;
      while (tmp && s[tmp + 1] != j) tmp = Next[tmp];
      if (s[tmp + 1] == j)
        Go[i][j - '0'] = tmp + 1;
      else
        Go[i][j - '0'] = 0;
    }
  }
  memset(f[0].a, 0, sizeof(f[0].a));
  memset(f[1].a, 0, sizeof(f[1].a));
  for (int i = 0; i <= n; ++i) f[0].a[i][i] = 1, f[1].a[i][i] = 1;
  f[0].a[N][N] = 2;
  f[1].a[N][N] = 2;
  for (int i = 0; i <= n; ++i) {
    f[0].a[i][Go[i][0]]++;
    if (Go[i][0] == n) f[0].a[i][N]++;
    f[1].a[i][Go[i][1]]++;
    if (Go[i][1] == n) f[1].a[i][N]++;
  }
  for (int i = 2; i <= m; ++i) {
    f[i] = f[i - 1] * f[i - 2];
  }
  static Tmx ans;
  memset(ans.a, 0, sizeof(ans.a));
  ans.a[0][0] = 1;
  ans = ans * f[m];
  printf("%d\n", ans.a[0][N]);
}
int main() {
  init();
  work();
  return 0;
}