After becoming CEO of Hoptiver, Andy is now a millionare! Unsure what to do with all his newfound wealth, Andy decides to buy a Bugatti like his favourite influencer.

However, in his infinite wealth Andy only owns banknotes worth multiples of million dollars. Andy wonders, with how many different combinations of his nn denominations of bank notes could he buy a Bugatti of cost kk million dollars.

Input Format

The input will consist of two lines. The first line has two space-separated integers, nn and kk. The following line consists of nn integers, the ithith of which represents the value of his ithith type of bank note, in millions of dollars. These values will be distinct.

Output Format

The output should consist of a single integer, representing the number of combinations. Since there could be many combinations, output this value modulo 1e9+7.

Sample Input

Input 1
3 5
1 2 3

Sample Output

Output 1
5

Sample Explanation

The combinations that sum to 55 million dollars are 1+1+1+1+11+1+1+1+1, 1+1+1+21+1+1+2, 1+1+31+1+3, 1+2+21+2+2 and 2+32+3.

Constraints

1≤n≤501 \le n \le 50

1≤a[i]≤501 \le a[i] \le 50. That is, the value of each bank note is between 1 and 50 million dollars.

1≤k≤1e51 \le k \le 1e5

Comments0


No comments yet

Be the first to comment.

New comment


Log in to join the discussion.