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>
int gcd(int a, int b) { return b == 0 ? a : gcd(b, a % b); }
using namespace ::std;
const long long maxn = 110;
const long long inf = 1e9 + 800;
const long long mod = 1e9 + 7;
long long pr[maxn][maxn][maxn];
long long sa[maxn][maxn][maxn];
long long ff[maxn][maxn][maxn];
long long dp[maxn];
long long tav[maxn];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, x;
  string s;
  cin >> n >> x >> s;
  for (long long l = 0; l < n; l++) {
    if (s[l] == '0') {
      pr[0][l][l] = 1;
      sa[0][l][l] = 1;
      ff[0][l][l] = 1;
    } else {
      pr[1][l][l] = 1;
      ff[1][l][l] = 1;
      sa[1][l][l] = 1;
    }
  }
  tav[0] = 2;
  tav[1] = 2;
  if (s == "0") dp[0] = 1;
  if (s == "1") dp[1] = 1;
  for (long long i = 2; i <= x; i++) {
    tav[i] = (tav[i - 1] * tav[i - 2]) % mod;
    for (long long l = 0; l < n; l++) {
      for (long long r = l; r < n; r++) {
        sa[i][l][r] = sa[i - 2][l][r] + (sa[i - 1][l][r] * tav[i - 2]) % mod;
        pr[i][l][r] = pr[i - 1][l][r] + (pr[i - 2][l][r] * tav[i - 1]) % mod;
        ff[i][l][r] = (ff[i - 2][l][r] + ff[i - 1][l][r]) % mod;
        for (long long g = l; g < r; g++) {
          sa[i][l][r] += (ff[i - 1][l][g] * sa[i - 2][g + 1][r]) % mod;
          pr[i][l][r] += (pr[i - 1][l][g] * ff[i - 2][g + 1][r]) % mod;
          ff[i][l][r] += (ff[i - 1][l][g] * ff[i - 2][g + 1][r]) % mod;
        }
        sa[i][l][r] %= mod;
        pr[i][l][r] %= mod;
        ff[i][l][r] %= mod;
      }
    }
    dp[i] = (dp[i - 1] * tav[i - 2] + dp[i - 2] * tav[i - 1]) % mod;
    for (long long g = 0; g < n; g++) {
      dp[i] += (pr[i - 1][0][g] * sa[i - 2][g + 1][n - 1]) % mod;
    }
    dp[i] %= mod;
  }
  cout << dp[x];
}