Saddle Point

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

bobo has a matrix of size n×mn \times m, whose elements are integers from \[1,k]\[1, k].

Find out the number of matrices with at least one saddle point, modulo (109+7)(10^9+7).

Note that a saddle point is a position (i,j)(i, j) which is both strict maximum of the ii-th row and jj-th column.

입력

33 integers n,m,kn, m, k (1n,m500,1k101 \leq n, m \leq 500, 1 \leq k \leq 10).

출력

A single integer denotes the number of matrices.