Follower of I 1

No attempts yetTime limit3sMemory limit256 MB

Problem

Hyeonjong has joined a group whose members treat the number II as sacred. They call II a good number, and every number that can be built from II with addition and multiplication is a good number too. To make many good numbers, Hyeonjong plays the following game.

He needs two things.

  • AA cards with II drawn on both sides, BB cards with ++ on them, and CC cards with ×\times on them.
  • A stack that already holds infinitely many copies of II.

Hyeonjong lays every card out in a single row, then reads the cards one at a time from the left and does the following.

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

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

Cards that show the same symbol are not told apart, so the number of different rows is (A+B+C)!A!B!C!\frac{(A+B+C)!}{A!\,B!\,C!}.

For every different row, Hyeonjong finishes the whole procedure and reads the number that sits ii-th from the top of the stack. He wants the sum of those numbers over all rows, for i=1,2,,Ki = 1, 2, \dots, K. Help him.

Input

The first line contains five integers II, AA, BB, CC, and KK, separated by spaces. AA is the number of II cards, BB is the number of ++ cards, CC is the number of ×\times cards, and KK is how many sums to compute.

1I1091 \le I \le 10^9, 0A0 \le A, 0B0 \le B, 0C0 \le C, A+B+C15A + B + C \le 15, and 1K401 \le K \le 40.

Output

Print KK lines. On line ii, print the sum, over every different row of cards, of the number that sits ii-th from the top of the stack once the procedure ends. Print each sum modulo 109+710^9 + 7.