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;
istream& in = cin;
const long long mod = 1e9 + 7;
long long dp[110][110][110][4];
string str;
int n, x;
void input() {
  in >> n >> x;
  in >> str;
}
long long pl[110];
void add(long long& a, long long b) {
  a %= mod;
  b %= mod;
  a += b;
  a %= mod;
  if (a < 0) a += mod;
}
long long dfs(int l, int r, int k, int f) {
  assert(l <= r);
  long long& ref = dp[l][r][k][f];
  if (ref != -1) return ref;
  ref = 0;
  if (k == 0) {
    if (l == r && str[l] == '0' && f == 2) {
      ref = 1;
    } else {
      ref = 0;
    }
  } else if (k == 1) {
    if (l == r && str[l] == '1' && f == 2) {
      ref = 1;
    } else {
      ref = 0;
    }
  } else {
    if (f == 0) {
      add(ref, 1 * dfs(l, r, k - 2, 0));
      add(ref, (pl[k - 1] - 1) * dfs(l, r, k - 2, 0));
      add(ref, (pl[k - 1] - 1) * dfs(l, r, k - 2, 2));
      for (int i = l; i < r; ++i) {
        ref = (ref + dfs(l, i, k - 1, 0) * dfs(i + 1, r, k - 2, 2) % mod) % mod;
      }
      add(ref, dfs(l, r, k - 1, 0) * 1);
    } else if (f == 1) {
      add(ref, 1 * dfs(l, r, k - 2, 1));
      for (int i = l; i < r; ++i) {
        ref = (ref + dfs(l, i, k - 1, 2) * dfs(i + 1, r, k - 2, 1) % mod) % mod;
      }
      add(ref, dfs(l, r, k - 1, 1) * pl[k - 2]);
      add(ref, dfs(l, r, k - 1, 2) * (pl[k - 2] - 1));
    } else if (f == 2) {
      add(ref, 1 * dfs(l, r, k - 2, 2));
      for (int i = l; i < r; ++i) {
        ref = (ref + dfs(l, i, k - 1, 2) * dfs(i + 1, r, k - 2, 2) % mod) % mod;
      }
      add(ref, dfs(l, r, k - 1, 2) * 1);
    } else {
      add(ref, dfs(l, r, k - 1, 3) * pl[k - 2]);
      add(ref, dfs(l, r, k - 1, 0) * (pl[k - 2] - 1));
      for (int i = l; i < r; ++i) {
        ref = (ref + dfs(l, i, k - 1, 0) * dfs(i + 1, r, k - 2, 1) % mod) % mod;
      }
      add(ref, (pl[k - 1] - 1) * dfs(l, r, k - 2, 1));
      add(ref, pl[k - 1] * dfs(l, r, k - 2, 3));
    }
  }
  return ref;
}
int main() {
  pl[0] = pl[1] = 2;
  for (int i = 2; i < 110; ++i) pl[i] = pl[i - 1] * pl[i - 2] % mod;
  int TEST_CASE = 1;
  while (TEST_CASE-- > 0) {
    input();
    memset(dp, -1, sizeof(dp));
    cout << (dfs(0, str.length() - 1, x, 0) + dfs(0, str.length() - 1, x, 1) +
             dfs(0, str.length() - 1, x, 2) + dfs(0, str.length() - 1, x, 3)) %
                mod
         << endl;
  }
  return 0;
}