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;
template <class T>
void dbs(string str, T t) {
  cerr << str << " : " << t << "\n";
}
template <class T, class... S>
void dbs(string str, T t, S... s) {
  int idx = str.find(',');
  cerr << str.substr(0, idx) << " : " << t << ",";
  dbs(str.substr(idx + 1), s...);
}
template <class S, class T>
ostream& operator<<(ostream& os, const pair<S, T>& p) {
  return os << "(" << p.first << ", " << p.second << ")";
}
template <class T>
ostream& operator<<(ostream& os, const vector<T>& p) {
  os << "[ ";
  for (auto& it : p) os << it << " ";
  return os << "]";
}
template <class T>
ostream& operator<<(ostream& os, const set<T>& p) {
  os << "[ ";
  for (auto& it : p) os << it << " ";
  return os << "]";
}
template <class S, class T>
ostream& operator<<(ostream& os, const map<S, T>& p) {
  os << "[ ";
  for (auto& it : p) os << it << " ";
  return os << "]";
}
template <class T>
void prc(T a, T b) {
  cerr << "[";
  for (T i = a; i != b; ++i) {
    if (i != a) cerr << ", ";
    cerr << *i;
  }
  cerr << "]\n";
}
const int N = 110;
int aut[N + 1][2];
vector<int> prefixFunction(string s) {
  int n = int(s.size());
  vector<int> pi(n, 0);
  for (int i = (int)(1); i <= (int)(n); i++) {
    int j = pi[i - 1];
    while (j > 0 and s[i] != s[j]) {
      j = pi[j - 1];
    }
    if (s[i] == s[j]) j++;
    pi[i] = j;
  }
  return pi;
}
void makeAutomaton(string s) {
  int n = int(s.size());
  vector<int> pi = prefixFunction(s);
  for (int i = (int)(0); i <= (int)(n); i++) {
    for (int c = (int)(0); c <= (int)(1); c++) {
      int j = i;
      while (j > 0 and s[j] != '0' + c) {
        j = pi[j - 1];
      }
      if ('0' + c == s[j]) {
        j++;
      }
      aut[i][c] = j;
    }
  }
}
vector<vector<long long>> multiply(const vector<vector<long long>>& a,
                                   const vector<vector<long long>>& b) {
  int n = int(a.size());
  vector<vector<long long>> c;
  c.resize(n, vector<long long>(n, 0));
  for (int i = (int)(0); i <= (int)(n - 1); i++) {
    for (int j = (int)(0); j <= (int)(n - 1); j++) {
      for (int k = (int)(0); k <= (int)(n - 1); k++) {
        c[i][j] = (c[i][j] + (a[i][k] * b[k][j]) % 1000000007) % 1000000007;
      }
    }
  }
  return c;
}
vector<long long> mul(const vector<long long>& v,
                      const vector<vector<long long>>& b) {
  vector<long long> res;
  res.resize(int(v.size()), 0);
  int n = int(v.size());
  for (int i = (int)(0); i <= (int)(n - 1); i++) {
    for (int j = (int)(0); j <= (int)(n - 1); j++) {
      res[i] = (res[i] + (v[j] * b[j][i]) % 1000000007) % 1000000007;
    }
  }
  return res;
}
int main() {
  int n, x;
  cin >> n >> x;
  string s;
  cin >> s;
  s += '#';
  makeAutomaton(s);
  vector<vector<long long>> f0;
  f0.resize(n + 2, vector<long long>(n + 2, 0));
  for (int i = (int)(0); i <= (int)(n); i++) {
    f0[i][i] = (f0[i][i] + 1) % 1000000007;
    int nextIndex = aut[i][0];
    f0[i][nextIndex] = (f0[i][nextIndex] + 1) % 1000000007;
    if (nextIndex == n) {
      f0[i][n + 1] = (f0[i][n + 1] + 1) % 1000000007;
    }
  }
  f0[n + 1][n + 1] = (f0[n + 1][n + 1] + 2) % 1000000007;
  vector<vector<long long>> f1;
  f1.resize(n + 2, vector<long long>(n + 2, 0));
  for (int i = (int)(0); i <= (int)(n); i++) {
    f1[i][i] = (f1[i][i] + 1) % 1000000007;
    int nextIndex = aut[i][1];
    f1[i][nextIndex] = (f1[i][nextIndex] + 1) % 1000000007;
    if (nextIndex == n) {
      f1[i][nextIndex + 1] = (f1[i][nextIndex + 1] + 1) % 1000000007;
    }
  }
  f1[n + 1][n + 1] = (f1[n + 1][n + 1] + 2) % 1000000007;
  vector<vector<vector<long long>>> results;
  results.push_back(f0);
  results.push_back(f1);
  for (int i = (int)(2); i <= (int)(x); i++) {
    vector<vector<long long>> res = multiply(results[i - 1], results[i - 2]);
    results.push_back(res);
  }
  vector<long long> v;
  v.resize(n + 2, 0);
  v[0] = 1;
  vector<long long> finalRes = mul(v, results[x]);
  cout << finalRes.back() << "\n";
  return 0;
}