#P10503. 233 Matrix
233 Matrix
Description
In our daily life we often use 233 to express our feelings. Actually, we may say 2333, 23333, or 233333 ... in the same meaning. And here is the question: Suppose we have a matrix called 233 matrix. In the first line, it would be 233, 2333, 23333... (it means , , ...) Besides, in 233 matrix, we got . Now you have known , could you tell me in the 233 matrix?
Input Format
There are multiple test cases. Please process till EOF.
For each case, the first line contains two postive integers . The second line contains n integers, ().
Output Format
For each case, output mod 10000007.
1 1
1
2 2
0 0
3 7
23 47 16
234
2799
72937
Hint

京公网安备 11011102002149号