Kings on a Chessboard

No attempts yetTime limit5sMemory limit256 MB

Problem

You have a chessboard with xx rows and yy columns, and kk identical kings. Place all kk kings on the board so that no two of them attack each other. Two kings attack each other when they stand on adjacent squares horizontally, vertically, or diagonally. A square holds at most one king.

Write a program that counts the arrangements of the kk kings. The count can be very large, so report it modulo 1,000,000,007.

Input

The first line contains the number of test cases TT. Each of the next TT lines contains three integers xx, yy, and kk separated by one space.

  • 0<T500 < T \le 50
  • 2x,y152 \le x, y \le 15
  • 1kx×y1 \le k \le x \times y

Output

For each test case, print the number of arrangements modulo 1,000,000,007 on its own line, in the order the test cases are given.