Grammy has a favorite number

. She thinks that all the numbers divisible by

are good.
For each array containing only numbers from

to

, Grammy define its goodness as the number of non-empty consecutive subarrays that sums to a good number.
Please count the number of arrays of length

such that its goodness is

. Since the answer can be enormous, output the answer modulo

.