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 int N = 105;
const int mod = 1e9 + 7;
char s[N];
int dp[N][N][N], fib[N], pfib[N], n;
int qpow(int x, int y, int m) {
  int ans = 1;
  while (y) {
    if (y & 1) ans = 1ll * ans * x % m;
    x = 1ll * x * x % m;
    y /= 2;
  }
  return ans;
}
void init() {
  fib[0] = 1, fib[1] = 1;
  for (int i = 2; i < N; i++) fib[i] = (fib[i - 1] + fib[i - 2]) % (mod - 1);
  for (int i = 0; i < N; i++) pfib[i] = qpow(2, fib[i], mod);
}
int f(int l, int r, int x) {
  if (x < 0) return 0;
  if (x == 0) {
    return (s[l] - '0') == 0 && l == r;
  }
  if (x == 1) {
    return (s[l] - '0') == 1 && l == r;
  }
  int &ans = dp[l][r][x];
  if (ans != -1) return ans;
  ans = 0;
  if (r != n)
    ans = (ans + f(l, r, x - 1)) % mod;
  else
    ans = (ans + 1ll * f(l, r, x - 1) * pfib[x - 2] % mod) % mod;
  if (l != 1)
    ans = (ans + f(l, r, x - 2)) % mod;
  else
    ans = (ans + 1ll * f(l, r, x - 2) * pfib[x - 1] % mod) % mod;
  for (int i = l; i < r; i++) {
    ans = (ans + 1ll * f(l, i, x - 1) * f(i + 1, r, x - 2) % mod) % mod;
  }
  return ans;
}
int main() {
  init();
  int x;
  scanf("%d%d%s", &n, &x, s + 1);
  memset(dp, -1, sizeof(dp));
  printf("%d\n", f(1, n, x));
  return 0;
}