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;
char s[1010];
int t[1010], l, ans, T;
bool p;
int mod = 1000000000 + 7;
int n, x;
int f[101][101][101];
int g[101][101][101];
int h[101][101][101];
long long e[101], a[101];
int main() {
  cin >> n >> x;
  cin >> s;
  for (int i = 0; i <= n - 1; i++)
    f[0][i][i] = g[0][i][i] = h[0][i][i] = (s[i] == '0');
  for (int i = 0; i <= n - 1; i++)
    f[1][i][i] = g[1][i][i] = h[1][i][i] = (s[i] == '1');
  e[0] = e[1] = 2;
  for (int i = 2; i <= x; i++) e[i] = e[i - 1] * e[i - 2] % mod;
  for (int i = 2; i <= x; i++)
    for (int u = 0; u <= n - 1; u++)
      for (int v = u; v <= n - 1; v++) {
        f[i][u][v] = (f[i - 1][u][v] + f[i - 2][u][v]) % mod;
        for (int w = u; w <= v - 1; w++)
          f[i][u][v] =
              (1ll * f[i - 1][u][w] * f[i - 2][w + 1][v] + f[i][u][v]) % mod;
      }
  for (int i = 2; i <= x; i++)
    for (int u = 0; u <= n - 1; u++)
      for (int v = u; v <= n - 1; v++) {
        g[i][u][v] = (e[i - 2] * g[i - 1][u][v] + g[i - 2][u][v]) % mod;
        for (int w = u; w <= v - 1; w++)
          g[i][u][v] =
              (1ll * f[i - 1][u][w] * g[i - 2][w + 1][v] + g[i][u][v]) % mod;
      }
  for (int i = 2; i <= x; i++)
    for (int u = 0; u <= n - 1; u++)
      for (int v = u; v <= n - 1; v++) {
        h[i][u][v] = (e[i - 1] * h[i - 2][u][v] + h[i - 1][u][v]) % mod;
        for (int w = u; w <= v - 1; w++)
          h[i][u][v] =
              (1ll * h[i - 1][u][w] * f[i - 2][w + 1][v] + h[i][u][v]) % mod;
      }
  if (n == 1) {
    if (s[0] == '0')
      a[0] = 1;
    else
      a[1] = 1;
  }
  for (int i = 2; i <= x; i++) {
    a[i] = (e[i - 2] * a[i - 1] + e[i - 1] * a[i - 2]) % mod;
    for (int w = 0; w <= n - 2; w++)
      a[i] = (1ll * h[i - 1][0][w] * g[i - 2][w + 1][n - 1] + a[i]) % mod;
  }
  cout << a[x] << endl;
}