Slave to achievements 1

No attempts yetTime limit3sMemory limit256 MB

Problem

Gyeonggeun plays a web game called isRPG. The title has RPG in it, so as you would expect, the game holds many pieces of equipment a character can use. Every piece is built by gathering materials in a fixed recipe, and the options on a finished piece are drawn at random inside a fixed range. If a finished piece is disappointing, you can take it apart and get some of the spent materials back.

Like most games these days, isRPG has an achievement system: reach a threshold on some counter and the achievement unlocks. The two counters Gyeonggeun is after right now are "craft at least this many pieces of equipment" and "disassemble at least this many pieces of equipment".

The easiest thing to craft in isRPG is the wooden dagger. Its only material is wood chips, and wood chips are easy to buy at the shop. Achievements have nothing to do with the quality of the item, so Gyeonggeun plans to whittle a great many wooden daggers.

Spending NN wood chips crafts one wooden dagger. Disassembling one wooden dagger returns at least 00 and at most KK wood chips. The probability of getting xx (0xK0 \le x \le K) wood chips back is 1/(K+1)1/(K+1) for every xx, whatever the value of xx, and separate disassemblies are independent.

Gyeonggeun killed plenty of treasure-hoarding dragons, and with the loot he bought MM wood chips at the shop. He owns no wooden dagger right now. From here on he repeats the following work. First he crafts wooden daggers until he cannot craft another one, then he disassembles every wooden dagger he holds. When he cannot craft even one dagger, the work stops.

Long experience taught Gyeonggeun that wood chips left in the inventory after all the work are very unpleasant. So he wants the probability that 00 wood chips are left once the work ends. Having thought that far, he also wants the probability that ii (0i<N0 \le i < N) wood chips are left. Help him out.

Input

The first line contains the number of wood chips needed for one wooden dagger NN, the largest number of wood chips one disassembly returns KK, and the number of wood chips Gyeonggeun holds right now MM, separated by spaces. (1K<N1031 \le K < N \le 10^3, 0M1060 \le M \le 10^6)

Output

Print NN lines. Line ii holds the probability that i1i-1 wood chips are left. At most N1N-1 wood chips can be left, so the output is exactly NN lines.

Write each probability as one integer, not as a decimal. Writing the probability as a reduced fraction pq\frac{p}{q}, print the integer rr with 0r<109+70 \le r < 10^9+7 that satisfies pqr0(mod109+7)p - qr \equiv 0 \pmod{10^9+7}. Such an rr exists and is unique in that range, and this has been proved.

Hint

For N=4N = 4, K=2K = 2, M=4M = 4 the answers are 13\frac{1}{3}, 13\frac{1}{3}, 13\frac{1}{3}, 00 in that order. Four wood chips craft one dagger and leave none, and disassembling that dagger returns 00, 11, or 22 chips, each with probability 13\frac{1}{3}. In every case no further dagger can be crafted, so the work ends there.