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>
#pragma 03
using namespace std;
mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
long long mod = 1e9 + 7;
long long modpow(long long a, long long b) {
  long long res = 1;
  while (b) {
    if (b & 1) (res *= a) %= mod;
    b >>= 1;
    (a *= a) %= mod;
  }
  return res;
}
long long fib[105], fib1[105], pw2_fib[105];
long long dp[105][105][105][4];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  fib[0] = fib1[0] = 1;
  fib[1] = fib1[1] = 1;
  for (long long i = 2; i < 105; i++) {
    fib[i] = fib[i - 1] + fib[i - 2];
    if (fib[i] >= mod) fib[i] -= mod;
    fib1[i] = fib1[i - 1] + fib1[i - 2];
    if (fib1[i] >= (mod - 1)) fib1[i] -= (mod - 1);
  }
  for (long long i = 0; i < 105; i++) pw2_fib[i] = modpow(2, fib1[i]);
  long long n, x;
  cin >> n >> x;
  string s;
  cin >> s;
  for (long long i = 1; i <= n; i++) {
    if (s[i - 1] == '0') {
      for (long long tp = 0; tp < 4; tp++) dp[0][i][i][tp] = 1;
    } else {
      for (long long tp = 0; tp < 4; tp++) dp[1][i][i][tp] = 1;
    }
  }
  for (long long i = 0; i <= x; i++) {
    for (long long l = 1; l <= n; l++) {
      for (long long tp = 0; tp < 4; tp++) dp[i][l][l - 1][tp] = 1;
    }
  }
  for (long long i = 2; i <= x; i++) {
    for (long long l = 1; l <= n; l++) {
      for (long long r = l; r <= n; r++) {
        for (long long mid = l - 1; mid <= r; mid++) {
          (dp[i][l][r][0] +=
           (dp[i - 1][l][mid][0] * dp[i - 2][mid + 1][r][0])) %= mod;
          if (mid >= l)
            (dp[i][l][r][1] +=
             (dp[i - 1][l][mid][1] * dp[i - 2][mid + 1][r][0])) %= mod;
          else
            (dp[i][l][r][1] += (dp[i - 2][l][r][1] * pw2_fib[i - 1])) %= mod;
          if (mid < r)
            (dp[i][l][r][2] +=
             (dp[i - 1][l][mid][0] * dp[i - 2][mid + 1][r][2])) %= mod;
          else
            (dp[i][l][r][2] += (dp[i - 1][l][r][2] * pw2_fib[i - 2])) %= mod;
          if (mid == l - 1)
            (dp[i][l][r][3] += (dp[i - 2][l][r][3] * pw2_fib[i - 1])) %= mod;
          else if (mid == r)
            (dp[i][l][r][3] += (dp[i - 1][l][r][3] * pw2_fib[i - 2])) %= mod;
          else
            (dp[i][l][r][3] +=
             (dp[i - 1][l][mid][1] * dp[i - 2][mid + 1][r][2])) %= mod;
        }
      }
    }
  }
  cout << dp[x][1][n][3] << "\n";
}