Skyscraper#11818

Skyscraper

1 second
128 megabytes
Very hard

The International Olympiad in Informatics will be held in Tsukuba City, Japan. In order to prepare for IOI, we are planning to construct skyscraper buildings in the main street of Tsukuba City. Since we want to create a new sightseeing spot, the buildings have to satisfy the following conditions.

We are planning to construct buildings along a straight line in the main street. The heights of them are a_1, a_2, a_3, ..., a_n. They are different from each other. Since the order of buildings are not yet decided, we can permute their heights if necessary. We will decorate them for IOI. Due to the constraints of materials used for decoration, the sum of the absolute values of the differences of the heights of two adjacent buildings must be less than or equal to . In other words, if the heights of the buildings from one side of the main street are f_1, f_2, f_3, ..., f_n, we must have

|f_1 - f_2| + |f_2 - f_3| + ... + |f_{n-1} - f_n| \le L

Here, is the absolute value of .

How many permutations of buildings satisfy the above condition?

Given the number of buildings, their heights, and the upper limit of the sum of the absolute values of the differences of the heights of two adjacent buildings, write a program which calculates the number of permutations of buildings satisfying the condition. Since this number can be too big, output the remainder of division of it by .

Input

Read the following data from the standard input.

  • The first line of input contains two space separated integers and (1 \le n \le 100, 1 \le L \le 1000). This means the number of buildings is , and the upper limit of the sum of the absolute values of the differences of the heights of two adjacent buildings is .

  • The second line contains space separated integers a_1, a_2, a_3, ..., a_n (1 \le a_i \le 1000 (1 \le i \le n), a_i \ne a_j (1 \le i < j \le n)). This means the height of the -th building (1 \le i \le n) is a_i.

Output

Print a single integer — the number of permutations of the buildings that satisfy the condition, modulo .

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Note

Subtask 1 [5 points]: n \le 8.

Subtask 2 [15 points]: n \le 14, L \le 100.

Subtask 3 [80 points]: There are no additional constraints.