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 = 100 + 5;
const int mod = 1e9 + 7;
inline int add(int x, int y) { return x + y >= mod ? x + y - mod : x + y; }
inline int mul(int x, int y) { return (long long)x * y % mod; }
int n, fibx;
char s[N];
int fibMod[N], pw[N];
int dp[N][N][N];
int fe(int x, int k) {
  int res = 1;
  while (k) {
    if (k & 1) res = mul(res, x);
    x = mul(x, x);
    k >>= 1;
  }
  return res;
}
int f(int l, int r, int x) {
  if (x < 0) return 0;
  if (x == 0) return l == r and s[l] == '0';
  if (x == 1) return l == r and s[l] == '1';
  int &ret = dp[l][r][x];
  if (ret != -1) return ret;
  ret = 0;
  ret = add(ret, mul(f(l, r, x - 1), r == n ? pw[x - 2] : 1));
  ret = add(ret, mul(f(l, r, x - 2), l == 1 ? pw[x - 1] : 1));
  for (int k = l; k < r; k++) {
    ret = add(ret, mul(f(l, k, x - 1), f(k + 1, r, x - 2)));
  }
  return ret;
}
int main() {
  fibMod[0] = fibMod[1] = 1;
  for (int i = 2; i < N; i++) {
    fibMod[i] = (fibMod[i - 1] + fibMod[i - 2]) % (mod - 1);
  }
  for (int i = 0; i < N; i++) {
    pw[i] = fe(2, fibMod[i]);
  }
  scanf("%d %d", &n, &fibx);
  scanf("%s", s + 1);
  memset(dp, -1, sizeof(dp));
  printf("%d\n", f(1, n, fibx));
  return 0;
}