There are *b* blocks of digits. Each one consisting of the same *n* digits, which are given to you in the input. Wet Shark must choose exactly one digit from each block and concatenate all of those digits together to form one large integer. For example, if he chooses digit 1 from the first block and digit 2 from the second block, he gets the integer 12.

Wet Shark then takes this number modulo *x*. Please, tell him how many ways he can choose one digit from each block so that he gets exactly *k* as the final result. As this number may be too large, print it modulo 10^{9} + 7.

Note, that the number of ways to choose some digit in the block is equal to the number of it's occurrences. For example, there are 3 ways to choose digit 5 from block 3 5 6 7 8 9 5 1 1 1 1 5.

The first line of the input contains four space-separated integers, *n*, *b*, *k* and *x* (2 ≤ *n* ≤ 50 000, 1 ≤ *b* ≤ 10^{9}, 0 ≤ *k* < *x* ≤ 100, *x* ≥ 2) — the number of digits in one block, the number of blocks, interesting remainder modulo *x* and modulo *x* itself.

The next line contains *n* space separated integers *a*_{i} (1 ≤ *a*_{i} ≤ 9), that give the digits contained in each block.

Print the number of ways to pick exactly one digit from each blocks, such that the resulting integer equals *k* modulo *x*.

Input12 1 5 10

3 5 6 7 8 9 5 1 1 1 1 5Output3Input3 2 1 2

6 2 2Output0Input3 2 1 2

3 1 2Output6

提交代码