Max the monke has been sent to the store to grab some bananas. There are types of bananas, each with a size and an infinite supply. Max wants to fill his backpack with bananas. If Max's backpack can hold bananas with total size at most , how many ways can he fill his backpack? Note that the order of the items in his backpack matters.
Input Specification
The first line of the input contains two integers .
The second line will contain integers .
Output Specification
On one line you are to print the number of ways he can fill his backpack modulo .
Subtasks
Subtask 1 (5%)
Subtask 2 (95%)
No further constraints.
Sample Input
2 5
1 2
Sample Output
8
Comments