Believer in I 2

No attempts yetTime limit3sMemory limit256 MB

Problem

Hyeonjong joined the Order of I, a group that treats the number II as sacred. The order calls II a good number, and it calls every other number you can build from copies of II with arithmetic a good number too. To make many good numbers, Hyeonjong plays the following game.

He prepares two things.

  • AA cards with II drawn on them, BB cards with ++, and CC cards with ×\times. Cards that carry the same symbol look alike, so he cannot tell them apart.
  • A stack that already holds infinitely many copies of II.

Hyeonjong lays the A+B+CA+B+C cards in a row and draws them from left to right. Each drawn card triggers one action.

  • II card: push II onto the stack.
  • ++ card: pop the top two numbers of the stack, then push their sum.
  • ×\times card: pop the top two numbers of the stack, then push their product.

The stack holds infinitely many copies of II, so a pop never runs out of numbers.

Two rows of cards differ only when the sequence of symbols differs, so there are (A+B+C)!A!B!C!\frac{(A+B+C)!}{A!B!C!} rows in total. Hyeonjong runs the whole procedure for every possible row, and for each ii from 1 to KK he wants the sum of the numbers that sit ii-th from the top of the final stack. Help him compute these KK sums.

Input

The first line contains five integers II, AA, BB, CC, KK separated by spaces. (1I1091 \le I \le 10^9, 0A,B,C400 \le A, B, C \le 40, 1K401 \le K \le 40)

AA is the number of cards with II, BB is the number of cards with ++, CC is the number of cards with ×\times, and KK is how many sums you must report.

Output

Print KK lines. On line ii, print the sum, taken over every possible row of cards, of the number that sits ii-th from the top of the stack after the procedure ends, modulo 10000000071\,000\,000\,007.