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 str[100 + 5];
long long int dp[100 + 3][100 + 3][100 + 3];
long long int dp_ta[100 + 3];
long long int dp_jt[100 + 5][100 + 3][100 + 3];
long long int dp_last[100 + 3][100 + 3][100 + 3];
long long int dp_first[100 + 3][100 + 3][100 + 3];
long long int take_anything(long long int n) {
  if (n <= 1) return 2;
  if (dp_ta[n] != -1) return dp_ta[n];
  return dp_ta[n] =
             ((long long int)take_anything(n - 1) * take_anything(n - 2)) %
             1000000007;
}
long long int just_take(long long int n, long long int l, long long int r) {
  if (n == 0) {
    if (l == r && str[l] == '0') return 1;
    return 0;
  }
  if (n == 1) {
    if (l == r && str[l] == '1') return 1;
    return 0;
  }
  if (dp_jt[n][l][r] != -1) return dp_jt[n][l][r];
  long long int ret =
      (just_take(n - 1, l, r) + just_take(n - 2, l, r)) % 1000000007;
  for (long long int k = l; k < r; k++)
    ret = (ret + ((long long int)just_take(n - 1, l, k) *
                  just_take(n - 2, k + 1, r)) %
                     1000000007) %
          1000000007;
  return dp_jt[n][l][r] = ret % 1000000007;
}
long long int fix_last(long long int n, long long int l, long long int r) {
  if (n == 0) {
    if (l == r && str[l] == '0') return 1;
    return 0;
  }
  if (n == 1) {
    if (l == r && str[l] == '1') return 1;
    return 0;
  }
  if (dp_last[n][l][r] != -1) return dp_last[n][l][r];
  long long int ret =
      (fix_last(n - 1, l, r) +
       (fix_last(n - 2, l, r) * take_anything(n - 1)) % 1000000007) %
      1000000007;
  for (long long int k = l; k < r; k++)
    ret = (ret +
           ((long long int)fix_last(n - 1, l, k) * just_take(n - 2, k + 1, r)) %
               1000000007) %
          1000000007;
  return dp_last[n][l][r] = ret % 1000000007;
}
long long int fix_first(long long int n, long long int l, long long int r) {
  if (n == 0) {
    if (l == r && str[l] == '0') return 1;
    return 0;
  }
  if (n == 1) {
    if (l == r && str[l] == '1') return 1;
    return 0;
  }
  if (dp_first[n][l][r] != -1) return dp_first[n][l][r];
  long long int ret =
      ((fix_first(n - 1, l, r) * take_anything(n - 2)) % 1000000007 +
       fix_first(n - 2, l, r)) %
      1000000007;
  for (long long int k = l; k < r; k++)
    ret = (ret + ((long long int)just_take(n - 1, l, k) *
                  fix_first(n - 2, k + 1, r)) %
                     1000000007) %
          1000000007;
  return dp_first[n][l][r] = ret % 1000000007;
}
long long int F(long long int n, long long int l, long long int r) {
  if (n == 0) {
    if (l == r && str[l] == '0') return 1;
    return 0;
  }
  if (n == 1) {
    if (l == r && str[l] == '1') return 1;
    return 0;
  }
  if (dp[n][l][r] != -1) return dp[n][l][r];
  long long int ret = ((F(n - 1, l, r) * take_anything(n - 2)) % 1000000007 +
                       (F(n - 2, l, r) * take_anything(n - 1)) % 1000000007) %
                      1000000007;
  for (long long int k = l; k < r; k++)
    ret = (ret +
           ((long long int)fix_last(n - 1, l, k) * fix_first(n - 2, k + 1, r)) %
               1000000007) %
          1000000007;
  return dp[n][l][r] = ret % 1000000007;
}
int main() {
  memset(dp, -1, sizeof(dp));
  memset(dp_ta, -1, sizeof(dp_ta));
  memset(dp_jt, -1, sizeof(dp_jt));
  memset(dp_first, -1, sizeof(dp_first));
  memset(dp_last, -1, sizeof(dp_last));
  long long int n, x;
  scanf("%lld %lld", &n, &x);
  scanf("%s", str + 1);
  printf("%lld\n", F(x, 1, n));
  return 0;
}