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 comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma GCC optimize("unroll-loops")
using namespace std;
template <class T>
inline T bigmod(T p, T e, T M) {
  long long ret = 1;
  for (; e > 0; e >>= 1) {
    if (e & 1) ret = (ret * p) % M;
    p = (p * p) % M;
  }
  return (T)ret;
}
template <class T>
inline T gcd(T a, T b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
template <class T>
inline T modinverse(T a, T M) {
  return bigmod(a, M - 2, M);
}
template <class T>
inline T lcm(T a, T b) {
  a = abs(a);
  b = abs(b);
  return (a / gcd(a, b)) * b;
}
template <class T, class X>
inline bool getbit(T a, X i) {
  T t = 1;
  return ((a & (t << i)) > 0);
}
template <class T, class X>
inline T setbit(T a, X i) {
  T t = 1;
  return (a | (t << i));
}
template <class T, class X>
inline T resetbit(T a, X i) {
  T t = 1;
  return (a & (~(t << i)));
}
inline long long getnum() {
  char c = getchar();
  long long num, sign = 1;
  for (; c < '0' || c > '9'; c = getchar())
    if (c == '-') sign = -1;
  for (num = 0; c >= '0' && c <= '9';) {
    c -= '0';
    num = num * 10 + c;
    c = getchar();
  }
  return num * sign;
}
inline long long power(long long a, long long b) {
  long long multiply = 1;
  for (int i = (0); i < (b); i++) {
    multiply *= a;
  }
  return multiply;
}
int n, x, a[105];
string s;
long long fibo[105], dp[103][103][103];
long long go(int i, int j, int k) {
  if (k < 2) {
    if (i == j) {
      if (a[i] == k) return 1;
    }
    return 0;
  }
  if (dp[i][j][k] != -1) return dp[i][j][k];
  long long ret = 0;
  long long L = go(i, j, k - 1), R = go(i, j, k - 2);
  if (j == n - 1) L *= fibo[k - 2], L %= 1000000007LL;
  if (i == 0) R *= fibo[k - 1], R %= 1000000007LL;
  ret += (L + R) % 1000000007LL;
  ret %= 1000000007LL;
  for (int l = i; l < j; l++) {
    L = go(i, l, k - 1);
    R = go(l + 1, j, k - 2);
    ret += (L * R) % 1000000007LL;
    ret %= 1000000007LL;
  }
  return dp[i][j][k] = ret;
}
int main() {
  int test, cases = 1;
  cin >> n >> x >> s;
  for (int i = (0); i < (n); i++) a[i] = s[i] - '0';
  fibo[0] = 2;
  fibo[1] = 2;
  for (int i = 2; i <= 100; i++) {
    fibo[i] = fibo[i - 1] * fibo[i - 2];
    fibo[i] %= 1000000007LL;
  }
  memset(dp, -1, sizeof(dp));
  long long ans = go(0, n - 1, x);
  cout << ans << "\n";
  return 0;
}