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 t, n, m, k, Ans, T;
int B[200010];
char A[200010];
inline int calc(int x, int y) {
  int ret = 0;
  if (x - 1 > 0 && y + 1 <= m && A[((x - 1 - 1) * m + y)] == '*' &&
      A[((x - 1 - 1) * m + y + 1)] == '*')
    ret++;
  if (x - 1 > 0 && y - 1 > 0 && A[((x - 1 - 1) * m + y)] == '*' &&
      A[((x - 1 - 1) * m + y - 1)] == '*')
    ret++;
  if (x - 1 > 0 && y - 1 > 0 && A[((x - 1) * m + y - 1)] == '*' &&
      A[((x - 1 - 1) * m + y - 1)] == '*')
    ret++;
  if (x - 1 > 0 && y - 1 > 0 && A[((x - 1) * m + y - 1)] == '*' &&
      A[((x - 1 - 1) * m + y)] == '*')
    ret++;
  return ret;
}
inline bool link(int x, int y) {
  if (x - 1 > 0 && A[((x - 1 - 1) * m + y)] == '*') return true;
  if (x + 1 <= n && A[((x + 1 - 1) * m + y)] == '*') return true;
  if (y - 1 > 0 && A[((x - 1) * m + y - 1)] == '*') return true;
  if (y + 1 <= m && A[((x - 1) * m + y + 1)] == '*') return true;
  return false;
}
bool S(int x, int y, int s) {
  if ((++T) > 10 * n * m) return 0;
  if (s == k) return 1;
  if (x > n) return 0;
  if (y > m) return S(x + 1, 1, s);
  int now = calc(x, y);
  if ((x == 1 && y == 1) || link(x, y))
    if (s + now <= k) {
      A[((x - 1) * m + y)] = '*';
      if (S(x, y + 1, s + now)) return 1;
    }
  A[((x - 1) * m + y)] = '.';
  return S(x, y + 1, s);
}
int main() {
  scanf("%d", &t);
  while (t--) {
    scanf("%d%d%d", &n, &m, &k);
    T = 0;
    int c = 0;
    if (n < m) {
      c = 1;
      swap(n, m);
    }
    for (int i = 1; i <= n * m; i++) A[i] = '.';
    if (!S(1, 1, 0))
      puts("-1\n");
    else {
      int E = 1;
      for (int i = 1; i <= n * m; i++)
        if (A[i] == '*') E = 0;
      if (E) A[1] = '*';
      if (!c)
        for (int i = 1; i <= n; i++, putchar('\n'))
          for (int j = 1; j <= m; j++) putchar(A[((i - 1) * m + j)]);
      else
        for (int i = 1; i <= m; i++, putchar('\n'))
          for (int j = 1; j <= n; j++) putchar(A[((j - 1) * m + i)]);
      putchar('\n');
    }
  }
  return 0;
}