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 denominations of bank notes could he buy a Bugatti of cost million dollars.
Input Format
The input will consist of two lines. The first line has two space-separated integers, and . The following line consists of integers, the of which represents the value of his 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
3 5
1 2 3
Sample Output
5
Sample Explanation
The combinations that sum to million dollars are , , , and .
Constraints
. That is, the value of each bank note is between 1 and 50 million dollars.
Comments