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;
const long long N = 110, mod = 1e9 + 7;
long long p[N], pre[N][N][N], suf[N][N][N], ans[N][N][N], how[N][N][N];
signed main() {
  ios_base::sync_with_stdio(0), cin.tie(0);
  p[0] = p[1] = 2;
  for (long long i = 2; i < N; i++) p[i] = (p[i - 1] * p[i - 2]) % mod;
  long long n, t;
  string s;
  cin >> n >> t >> s;
  for (long long i = 0; i < n; i++) {
    if (s[i] == '1') {
      ans[1][i][i] = suf[1][i][i] = pre[1][i][i] = how[1][i][i] = 1;
    } else {
      ans[0][i][i] = suf[0][i][i] = pre[0][i][i] = how[0][i][i] = 1;
    }
  }
  for (long long i = 2; i <= t; i++) {
    for (long long x = 0; x < n; x++) {
      for (long long y = x; y < n; y++) {
        how[i][x][y] =
            (how[i][x][y] + how[i - 1][x][y] + how[i - 2][x][y]) % mod;
        pre[i][x][y] =
            ((pre[i - 1][x][y] * p[i - 2]) % mod + pre[i - 2][x][y]) % mod;
        suf[i][x][y] =
            ((suf[i - 2][x][y] * p[i - 1]) % mod + suf[i - 1][x][y]) % mod;
        ans[i][x][y] = ((ans[i - 1][x][y] * p[i - 2]) % mod +
                        (ans[i - 2][x][y] * p[i - 1]) % mod) %
                       mod;
        for (long long j = x + 1; j <= y; j++) {
          how[i][x][y] =
              (how[i][x][y] + (how[i - 2][j][y] * how[i - 1][x][j - 1]) % mod) %
              mod;
          pre[i][x][y] =
              (pre[i][x][y] + (pre[i - 2][j][y] * how[i - 1][x][j - 1]) % mod) %
              mod;
          suf[i][x][y] =
              (suf[i][x][y] + (suf[i - 1][x][j - 1] * how[i - 2][j][y]) % mod) %
              mod;
          ans[i][x][y] =
              (ans[i][x][y] + (suf[i - 1][x][j - 1] * pre[i - 2][j][y]) % mod) %
              mod;
        }
      }
    }
  }
  cout << ans[t][0][n - 1] << '\n';
  return 0;
}