Problem: Today Peter has got an additional homework for tomorrow. The teacher has given three integers to him: n, m and k, and asked him to mark one or more squares on a square grid of size n × m. 

The marked squares must form a connected figure, and there must be exactly k triples of marked squares that form an L-shaped tromino — all three squares are inside a 2 × 2 square.

The set of squares forms a connected figure if it is possible to get from any square to any other one if you are allowed to move from a square to any adjacent by a common side square.

Peter cannot fulfill the task, so he asks you for help. Help him to create such figure.

Input

Input data contains one or more test cases. The first line contains the number of test cases t (1 ≤ t ≤ 100).

Each of the following t test cases is described by a line that contains three integers: n, m and k (3 ≤ n, m, n × m ≤ 105, 0 ≤ k ≤ 109).

The sum of values of n × m for all tests in one input data doesn't exceed 105.

Output

For each test case print the answer.

If it is possible to create such figure, print n lines, m characters each, use asterisk '*' to denote the marked square, and dot '.' to denote the unmarked one.

If there is no solution, print -1.

Print empty line between test cases.

Example

Input

3
3 3 4
3 3 5
3 3 3


Output

.*.
***
.*.

**.
**.
*..

.*.
***
*..

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
int N, M, K, T;
int main() {
  for (scanf("%d", &T); T; --T) {
    scanf("%d %d %d", &N, &M, &K);
    bool f = N == 3;
    if (f) swap(N, M);
    vector<vector<char> > pot(N);
    bool haveans = 1;
    for (int i = 0; i < N; ++i) pot[i].resize(M, !i + '0');
    for (int i = 1; i < N && K; ++i)
      for (int j = 0; j < M && K; ++j)
        if (K < (j == 0 ? 1 : (j == M - 1 ? 3 : 4))) {
          if (j == M - 1)
            if (i == N - 1)
              haveans = 0;
            else {
              pot[i + 1][M - 2] = '1';
              pot[i + 1][M - 1] = '0' + (K == 2);
            }
          else if (K == 1)
            pot[i][M - 1] = '1';
          else if (j == M - 2)
            if (i == N - 1)
              haveans = 0;
            else if (j == 1) {
              pot[i + 1][M - 3] = pot[i + 1][M - 2] = pot[i][M - 1] = '1';
              pot[i + 1][M - 1] = '0' + (K == 3);
            } else {
              pot[i + 1][M - 3] = pot[i + 1][M - 2] = '1';
              pot[i][M - 1] = '0' + (K == 3);
            }
          else if (K == 2)
            pot[i][M - 2] = '1';
          else if (j == M - 3)
            if (i == N - 1)
              haveans = 0;
            else
              pot[i][M - 2] = pot[i + 1][M - 2] = pot[i + 1][M - 1] = '1';
          else
            pot[i][M - 1] = pot[i][M - 3] = '1';
          K = 0;
        } else {
          K -= (j == 0 ? 1 : (j == M - 1 ? 3 : 4));
          pot[i][j] = '1';
        }
    if (!haveans || K)
      puts("-1");
    else if (!f)
      for (int i = 0; i < N; ++i, puts(""))
        for (int j = 0; j < M; ++j) putchar(pot[i][j] == '0' ? '.' : '*');
    else
      for (int j = 0; j < M; ++j, puts(""))
        for (int i = 0; i < N; ++i) putchar(pot[i][j] == '0' ? '.' : '*');
    if (T != 1) puts("");
  }
  return 0;
}