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 GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#pragma comment(linker, "/STACK:2000000")
using namespace std;
template <int D, typename T>
struct Vec : public vector<Vec<D - 1, T>> {
  static_assert(D >= 1, "Vector dimension must be greater than zero!");
  template <typename... Args>
  Vec(int n = 0, Args... args)
      : vector<Vec<D - 1, T>>(n, Vec<D - 1, T>(args...)) {}
};
template <typename T>
struct Vec<1, T> : public vector<T> {
  Vec(int n = 0, T val = T()) : vector<T>(n, val) {}
};
using ll = long long;
using db = long double;
using ii = pair<int, int>;
const int N = 2e5 + 5, LG = 19, MOD = 1e9 + 7;
const int SQ = 320;
const long double EPS = 1e-7;
void printCase(int cs) { cout << "Case #" << cs << ": "; }
int n, x;
string s;
pair<int, int> dp[105][105][105];
bool vis[105][105][105];
vector<int> FAIL(string pat) {
  int m = pat.size();
  vector<int> first(m + 1);
  int i = 0, j = -1;
  first[0] = -1;
  while (i < m) {
    while (j >= 0 && pat[i] != pat[j]) j = first[j];
    i++, j++;
    first[i] = j;
  }
  return first;
}
vector<int> first;
int go(int node, int f) {
  while (node >= 0 && s[node] - '0' != f) node = first[node];
  node++;
  return node;
}
pair<int, int> solve(int fibn, int nodeInDFA, int targetNode) {
  if (fibn <= 1) {
    pair<int, int> ret = ii(0, 0);
    if (nodeInDFA == targetNode || targetNode == -1) ret.second++;
    nodeInDFA = go(nodeInDFA, fibn);
    if (nodeInDFA == targetNode || targetNode == -1) {
      ret.second++;
      ret.first += nodeInDFA == n;
    }
    return ret;
  }
  ii &ret = dp[fibn][nodeInDFA][targetNode + 1];
  if (vis[fibn][nodeInDFA][targetNode + 1]) return ret;
  vis[fibn][nodeInDFA][targetNode + 1] = true;
  for (int takeNode = 0; takeNode <= n; takeNode++) {
    auto x = solve(fibn - 1, nodeInDFA, takeNode);
    auto y = solve(fibn - 2, (takeNode == n ? first[takeNode] : takeNode),
                   targetNode);
    ret.second = (ret.second + 1ll * x.second * y.second) % MOD;
    ret.first =
        (ret.first + 1ll * y.first * x.second + 1ll * x.first * y.second) % MOD;
  }
  return ret;
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n >> x >> s;
  first = FAIL(s);
  ll ans = 0;
  ans += solve(x, 0, -1).first;
  cout << ans % MOD << endl;
  return 0;
}