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;
const int maxn = 200009;
const int MOD = 1e9 + 7;
void add(int &a, int b) {
  a += b;
  if (a >= MOD) a -= MOD;
}
vector<vector<int>> mul(vector<vector<int>> &A, vector<vector<int>> &B) {
  int n = ((int)(A).size());
  vector<vector<int>> res(n, vector<int>(n));
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < n; ++j) {
      for (int k = 0; k < n; ++k) {
        add(res[i][j], 1ll * A[i][k] * B[k][j] % MOD);
      }
    }
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(false), cout.tie(0), cin.tie(0);
  int n, x;
  cin >> n >> x;
  string s;
  cin >> s;
  s += "#";
  n++;
  vector<int> pi(n);
  for (int i = 1; i < n; ++i) {
    int j = pi[i - 1];
    while (j && s[i] != s[j]) j = pi[j - 1];
    if (s[i] == s[j]) j++;
    pi[i] = j;
  }
  vector<vector<int>> aut(n, vector<int>(2));
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < 2; ++j) {
      if (i > 0 && '0' + j != s[i])
        aut[i][j] = aut[pi[i - 1]][j];
      else
        aut[i][j] = i + (s[i] == '0' + j);
    }
  }
  vector<vector<vector<int>>> cal;
  vector<vector<int>> Mat(n + 1, vector<int>(n + 1, 0));
  for (int i = 0; i < n; ++i) {
    Mat[i][i]++;
    Mat[i][aut[i][0]]++;
    if (aut[i][0] == n - 1) Mat[i][n]++;
  }
  Mat[n][n] += 2;
  cal.push_back(Mat);
  Mat.assign(n + 1, vector<int>(n + 1, 0));
  for (int i = 0; i < n; ++i) {
    Mat[i][i]++;
    Mat[i][aut[i][1]]++;
    if (aut[i][1] == n - 1) Mat[i][n]++;
  }
  Mat[n][n] += 2;
  cal.push_back(Mat);
  for (int i = 2; i <= x; ++i) cal.push_back(mul(cal[i - 1], cal[i - 2]));
  cout << cal[x][0][n] << '\n';
  return 0;
}