Time limit
2s
Memory limit
128 MB
There is a rectangular box of size A x B x C. Its base is an A-row by B-column grid, and each cell may contain a vertical stack of 0 to C unit blocks of size 1 x 1 x 1.
The height of every cell must satisfy these conditions.
A cell may also contain no blocks. Given A, B, and C, compute the number of possible block arrangements.
The first line contains three integers A, B, and C.
Print the number of possible block arrangements modulo 1,000,000,000,000,000,000.