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 X1[4] = {0, 0, 0, 0};
int Y1[4] = {-1, -1, 1, 1};
int X2[4] = {-1, 1, -1, 1};
int Y2[4] = {0, 0, 0, 0};
int X[4] = {0, 0, 1, -1};
int Y[4] = {1, -1, 0, 0};
int i, j, k, n, m, x, y, T, Cnt, xx, yy;
bool f, F, f2;
map<int, bool> b[200010], a[200010];
inline int Calc(int x, int y) {
  int Ans = 0;
  for (int p = 0; p < 4; p++) {
    int xx = x + X1[p], yy = y + Y1[p];
    if (xx < 1 || xx > n || yy < 1 || yy > m || !b[xx][yy]) continue;
    xx = x + X2[p];
    yy = y + Y2[p];
    if (xx < 1 || xx > n || yy < 1 || yy > m || !b[xx][yy]) continue;
    Ans++;
  }
  return Ans;
}
inline void Dfs(int x, int y, int Sum) {
  if (++Cnt > (n * m * 10) || f || Sum > k) return;
  if (Sum == k) {
    f = 1;
    for (int i = 1; i <= n; i++)
      for (int j = 1; j <= m; j++) a[i][j] = b[i][j];
    return;
  }
  if (y == m + 1) x++, y = 1;
  if (x == n + 1) return;
  bool f3 = 0;
  for (int p = 0; p < 4; p++) {
    xx = x + X[p];
    yy = y + Y[p];
    if (xx < 1 || xx > n || yy < 1 || yy > m || !b[xx][yy]) continue;
    f3 = 1;
    break;
  }
  if (!f2 || f3) {
    for (int p = 0; p < 4; p++) {
      xx = x + X[p];
      yy = y + Y[p];
      if (xx < 1 || xx > n || yy < 1 || yy > m || !b[xx][yy]) continue;
      Sum -= Calc(xx, yy);
    }
    int s = Sum;
    b[x][y] = 1;
    for (int p = 0; p < 4; p++) {
      xx = x + X[p];
      yy = y + Y[p];
      if (xx < 1 || xx > n || yy < 1 || yy > m || !b[xx][yy]) continue;
      Sum += Calc(xx, yy);
    }
    Dfs(x, y + 1, Sum + Calc(x, y));
    f2 = 1;
    b[x][y] = 0;
    for (int p = 0; p < 4; p++) {
      xx = x + X[p];
      yy = y + Y[p];
      if (xx < 1 || xx > n || yy < 1 || yy > m || !b[xx][yy]) continue;
      s += Calc(xx, yy);
    }
    Dfs(x, y + 1, s);
  } else {
    b[x][y] = 0;
    Dfs(x, y + 1, Sum);
  }
}
int main() {
  scanf("%d", &T);
  while (T--) {
    scanf("%d%d%d", &n, &m, &k);
    F = 0;
    if (n < m) swap(n, m), F = 1;
    f = Cnt = f2 = 0;
    Dfs(1, 1, 0);
    if (f) {
      if (F) {
        for (i = 1; i <= m; i++) {
          for (j = 1; j <= n; j++)
            if (a[j][i]) break;
          if (j <= n) break;
        }
        if (i > m) a[1][1] = 1;
        for (i = 1; i <= m; i++) {
          for (j = 1; j <= n; j++)
            if (a[j][i])
              putchar('*');
            else
              putchar('.');
          putchar('\n');
        }
      } else {
        for (i = 1; i <= n; i++) {
          for (j = 1; j <= m; j++)
            if (a[i][j]) break;
          if (j <= m) break;
        }
        if (i > n) a[1][1] = 1;
        for (i = 1; i <= n; i++) {
          for (j = 1; j <= m; j++)
            if (a[i][j])
              putchar('*');
            else
              putchar('.');
          putchar('\n');
        }
      }
    } else
      puts("-1");
    putchar('\n');
  }
  return 0;
}