Consider a matrix with n rows and m columns where each cell contains a value 0. You are required to perform the following operation k times:
Determine the expected sum of the matrix after completion of all the k operations. Let this value be E=PQ. Print the value of P⋅Q−1 modulo 109+7, where Q−1 denotes the modular inverse of Q modulo 109+7.
Input format
First line: Three integers n,m and k
Output format
Print the value of P⋅Q−1 modulo 109+7.
Constraints
1≤n,m≤109
1≤k≤1000
There are three submatrices in total. One submatrix is equal to the full matrix, while the other two submatrices consist of one cell each.
With a probability 23, a submatrix with one cell is chosen and we get the sum as 1.
With a probability 13, the full matrix is chosen and we get the sum as 2.
The expected value is hence 23×1+13×2=43
3−1=333333336 modulo 109+7.
Thus we print 4×333333336 modulo 109+7, which is 333333337.