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>
template <int MOD>
struct ModInt {
  using lint = long long;
  int val;
  ModInt(lint v = 0) : val(v % MOD) {
    if (val < 0) val += MOD;
  };
  ModInt operator+() const { return ModInt(val); }
  ModInt operator-() const { return ModInt(MOD - val); }
  ModInt inv() const { return this->pow(MOD - 2); }
  ModInt operator+(const ModInt& x) const { return ModInt(*this) += x; }
  ModInt operator-(const ModInt& x) const { return ModInt(*this) -= x; }
  ModInt operator*(const ModInt& x) const { return ModInt(*this) *= x; }
  ModInt operator/(const ModInt& x) const { return ModInt(*this) /= x; }
  ModInt pow(lint n) const {
    auto x = ModInt(1);
    auto b = *this;
    while (n > 0) {
      if (n & 1) x *= b;
      n >>= 1;
      b *= b;
    }
    return x;
  }
  ModInt& operator+=(const ModInt& x) {
    if ((val += x.val) >= MOD) val -= MOD;
    return *this;
  }
  ModInt& operator-=(const ModInt& x) {
    if ((val -= x.val) < 0) val += MOD;
    return *this;
  }
  ModInt& operator*=(const ModInt& x) {
    val = lint(val) * x.val % MOD;
    return *this;
  }
  ModInt& operator/=(const ModInt& x) { return *this *= x.inv(); }
  bool operator==(const ModInt& b) const { return val == b.val; }
  bool operator!=(const ModInt& b) const { return val != b.val; }
  friend std::istream& operator>>(std::istream& is, ModInt& x) noexcept {
    return is >> x.val;
  }
  friend std::ostream& operator<<(std::ostream& os, const ModInt& x) noexcept {
    return os << x.val;
  }
};
constexpr int MOD = 1e9 + 7;
using mint = ModInt<MOD>;
template <class T>
std::vector<T> vec(int len, T elem) {
  return std::vector<T>(len, elem);
}
template <class T>
void shift(std::vector<T>& v) {
  int n = v.size();
  for (int i = 0; i + 1 < n; ++i) {
    v[i] = v[i + 1];
  }
}
int main() {
  int n, x;
  std::string t;
  std::cin >> n >> x >> t;
  auto sdp = vec(3, vec(n + 1, vec(n + 1, mint(0))));
  auto pdp = sdp, adp = sdp;
  auto cnts = vec(3, mint(0));
  auto lenpow = vec(3, mint(0));
  for (int i = 0; i < 2; ++i) {
    std::string s(1, '0' + i);
    for (int l = 0; l <= n; ++l) {
      sdp[i][l][l] = 2;
      pdp[i][l][l] = 2;
      adp[i][l][l] = 1;
      if (s == t.substr(l, 1)) {
        sdp[i][l][l + 1] = 1;
        pdp[i][l][l + 1] = 1;
        adp[i][l][l + 1] = 1;
      }
    }
    cnts[i] = adp[i][0][n];
    lenpow[i] = 2;
  }
  if (x == 0) {
    std::cout << cnts[0] << std::endl;
    return 0;
  }
  for (int q = 2; q <= x; ++q) {
    lenpow[2] = lenpow[1] * lenpow[0];
    for (int l = 0; l <= n; ++l) {
      for (int r = l; r <= n; ++r) {
        pdp[2][l][r] = 0;
        sdp[2][l][r] = 0;
        adp[2][l][r] = 0;
        for (int k = l; k <= r; ++k) {
          pdp[2][l][r] += (k == r ? pdp : adp)[1][l][k] * pdp[0][k][r];
          sdp[2][l][r] += sdp[1][l][k] * (k == l ? sdp : adp)[0][k][r];
          adp[2][l][r] += adp[1][l][k] * adp[0][k][r];
        }
      }
    }
    cnts[2] = cnts[1] * lenpow[0] + cnts[0] * lenpow[1];
    for (int k = 1; k < n; ++k) {
      cnts[2] += sdp[1][0][k] * pdp[0][k][n];
    }
    shift(sdp);
    shift(pdp);
    shift(adp);
    shift(lenpow);
    shift(cnts);
  }
  std::cout << cnts[1] << std::endl;
  return 0;
}