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, t, test, ans, p, T;
bool bo;
int d[5][2] = {{1, 0}, {0, 1}, {-1, 0}, {0, -1}, {1, 0}};
map<pair<int, int>, int> mp, Ans;
inline void PrintMp(void) {
  int sum;
  sum = 0;
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= m; j++) sum += Ans[make_pair(i, j)];
  if (!sum) Ans[make_pair(1, 1)] = 1;
  if (bo)
    for (int i = 1; i <= m; i++) {
      for (int j = 1; j <= n; j++) putchar(Ans[make_pair(j, i)] ? '*' : '.');
      putchar('\n');
    }
  else
    for (int i = 1; i <= n; i++) {
      for (int j = 1; j <= m; j++) putchar(Ans[make_pair(i, j)] ? '*' : '.');
      putchar('\n');
    }
}
void dfs(int x, int y, int s) {
  if (ans || ++T > n * m * 20) return;
  if (s == t) {
    for (int i = 1; i <= n; i++)
      for (int j = 1; j <= m; j++) Ans[make_pair(i, j)] = mp[make_pair(i, j)];
    ans = 1;
    return;
  }
  if (x > n) return;
  if (y > m) return dfs(x + 1, 1, s);
  int sum = 0, res;
  if (x == 1 && y == 1)
    res = 1;
  else
    res = mp[make_pair(x - 1, y)] + mp[make_pair(x, y - 1)];
  sum += mp[make_pair(x, y - 1)] & mp[make_pair(x + 1, y - 1)];
  sum += mp[make_pair(x + 1, y)] & mp[make_pair(x + 1, y - 1)];
  sum += mp[make_pair(x, y + 1)] & mp[make_pair(x + 1, y + 1)];
  sum += mp[make_pair(x + 1, y)] & mp[make_pair(x + 1, y + 1)];
  sum += mp[make_pair(x, y - 1)] & mp[make_pair(x - 1, y - 1)];
  sum += mp[make_pair(x - 1, y)] & mp[make_pair(x - 1, y - 1)];
  sum += mp[make_pair(x, y + 1)] & mp[make_pair(x - 1, y + 1)];
  sum += mp[make_pair(x - 1, y)] & mp[make_pair(x - 1, y + 1)];
  sum += mp[make_pair(x, y + 1)] & mp[make_pair(x + 1, y)];
  sum += mp[make_pair(x, y - 1)] & mp[make_pair(x - 1, y)];
  sum += mp[make_pair(x - 1, y)] & mp[make_pair(x, y + 1)];
  sum += mp[make_pair(x + 1, y)] & mp[make_pair(x, y - 1)];
  if (s + sum <= t && res) {
    mp[make_pair(x, y)] = 1;
    dfs(x, y + 1, s + sum);
    mp[make_pair(x, y)] = 0;
  }
  dfs(x, y + 1, s);
}
int main(void) {
  scanf("%d", &test);
  while (test--) {
    scanf("%d%d%d", &n, &m, &t);
    bo = 0;
    T = 0;
    mp.clear();
    Ans.clear();
    if (n < m) {
      swap(n, m);
      p = n;
      bo = 1;
    }
    ans = 0;
    dfs(1, 1, 0);
    if (!ans)
      printf("-1\n");
    else
      PrintMp();
    putchar('\n');
  }
  return 0;
}