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;
void abc() { cerr << endl; }
template <typename T, typename... U>
void abc(T a, U... b) {
  cerr << a << ' ', abc(b...);
}
template <typename T>
void printv(T l, T r) {
  while (l != r) cout << *l << " \n"[++l == r];
}
template <typename A, typename B>
istream& operator>>(istream& o, pair<A, B>& a) {
  return o >> a.first >> a.second;
}
template <typename A, typename B>
ostream& operator<<(ostream& o, pair<A, B> a) {
  return o << '(' << a.first << ", " << a.second << ')';
}
template <typename T>
ostream& operator<<(ostream& o, vector<T> a) {
  bool is = false;
  for (T i : a) {
    o << (is ? ' ' : '{'), is = true, o << i;
  }
  return o << '}';
}
template <typename T>
struct vv : vector<vector<T>> {
  vv(int n, int m, T v) : vector<vector<T>>(n, vector<T>(m, v)) {}
  vv() {}
};
template <typename T>
struct vvv : vector<vv<T>> {
  vvv(int n, int m, int k, T v) : vector<vv<T>>(n, vv<T>(m, k, v)) {}
  vvv() {}
};
const int mod = 1e9 + 7, N = 101, logC = 30, logN = 19, K = 111, M = 4e6;
void add(int& i, int j) {
  i += j;
  if (i >= mod) i -= mod;
}
int dp[N][N][N][4], pw[N];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  pw[0] = pw[1] = 2;
  for (int i = 2; i < N; ++i) {
    pw[i] = 1ll * pw[i - 1] * pw[i - 2] % mod;
  }
  int n, m;
  string s;
  cin >> n >> m >> s;
  for (int i = 0; i < n; ++i)
    for (int j = 0; j < 4; ++j) {
      dp[s[i] - '0'][i][i + 1][j] = 1;
    }
  for (int i = 2; i <= m; ++i) {
    for (int l = 0; l < n; ++l) {
      for (int r = l + 1; r <= n; ++r) {
        add(dp[i][l][r][0], dp[i - 1][l][r][0]);
        add(dp[i][l][r][1], dp[i - 1][l][r][1]);
        add(dp[i][l][r][2], 1ll * dp[i - 1][l][r][2] * pw[i - 2] % mod);
        add(dp[i][l][r][3], 1ll * dp[i - 1][l][r][3] * pw[i - 2] % mod);
        add(dp[i][l][r][0], dp[i - 2][l][r][0]);
        add(dp[i][l][r][1], 1ll * dp[i - 2][l][r][1] * pw[i - 1] % mod);
        add(dp[i][l][r][2], dp[i - 2][l][r][2]);
        add(dp[i][l][r][3], 1ll * dp[i - 2][l][r][3] * pw[i - 1] % mod);
        for (int k = l + 1; k < r; ++k) {
          add(dp[i][l][r][0],
              1ll * dp[i - 1][l][k][0] * dp[i - 2][k][r][0] % mod);
          add(dp[i][l][r][1],
              1ll * dp[i - 1][l][k][1] * dp[i - 2][k][r][0] % mod);
          add(dp[i][l][r][2],
              1ll * dp[i - 1][l][k][0] * dp[i - 2][k][r][2] % mod);
          add(dp[i][l][r][3],
              1ll * dp[i - 1][l][k][1] * dp[i - 2][k][r][2] % mod);
        }
      }
    }
  }
  cout << dp[m][0][n][3] << endl;
}