#c221101. 不定方程的解
不定方程的解
Solutions of a Diophantine Equation
Problem Description
Given the indeterminate equation and constraints , where . Find the number of non-negative integer solutions to the equation.
Since the answer can be very large, output the result modulo .
Input Format
The first line contains two integers (), followed by one line with integers ().
Output Format
One number, the answer.
Sample Input
3 5
2 3 4
Sample Output
11
Constraints
For of the data, .