Time limit: 1.00 s Memory limit: 512 MB
You know that an array has
Given a description of the array where some values may be unknown, your task is to count the number of arrays that match the description.
Input
The first input line has two integers
The next line has n integers
Output
Print one integer: the number of arrays modulo
Constraints
$1 \le n \le 10^5$ $1 \le m \le 100$ $0 \le x_i \le m$
Example
Input:
3 5
2 0 2
Output:
3
Explanation: The arrays