CSES - Subsets with Fixed Average
  • Time limit: 1.00 s
  • Memory limit: 512 MB

You are given an array of nn integers. Your task is to count the number of non-empty subsets of the given array with average equal to aa.

Input

The first line has two integers nn and aa: the size of the array and the target average.

The next line has nn integers x1,x2,,xnx_1, x_2,\dots, x_n: the contents of the array.

Output

Print one integer: the number of non-empty subsets with average equal to aa, modulo 109+710^9 + 7.

Constraints

  • 1n5001 \le n \le 500
  • 1a5001 \le a \le 500
  • 1xi5001 \le x_i \le 500

Example

Input:

5 2
1 1 2 3 4

Output:

7