Product of differences
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Array of integers is given. Find the product
If you are not familiar with short notation, this product equals to
In other words, this is the product of for all .
As the result will be very big, find it modulo .
Input
First line contains two integers and . Next line contains integers .
Output
Print the value of the product modulo .
Examples
Input #1
Answer #1
Submissions 302
Acceptance rate 25%