UVa 11115 - Uncle Jack

Summary
An easy Big Number problem.

Explanation
It's a permutation and computation problem. Uncle Jack has some CDs to give his nephews. Thus, we need to compute how many ways for uncle Jack to give his CDs.

For example, if uncle Jack has 3 nephews and 10 CDs, he has $$3^{10}$$ ways to distribute his CDs.

Input
1 20 3 10 0 0

Output
1 59049