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, falg;
vector<vector<int> > a;
void print() {
  if (falg)
    for (int j = 1; j <= m; j++, puts(""))
      for (int i = 1; i <= n; i++) putchar(a[i][j] ? '*' : '.');
  else
    for (int i = 1; i <= n; i++, puts(""))
      for (int j = 1; j <= m; j++) putchar(a[i][j] ? '*' : '.');
}
bool dfs(int x, int y, int nw) {
  if (nw > k) return false;
  if (x > n) {
    if (nw == k) return true;
    return false;
  }
  for (int i = ((x == 1 && y == 1) || (x > 1 && a[x - 1][y]) ||
                (y > 1 && a[x][y - 1])),
           sum;
       i >= 0; i--) {
    a[x][y] = i, sum = nw;
    if (a[x][y] && x > 1) {
      sum += a[x - 1][y] && a[x][y - 1];
      sum += a[x - 1][y] && a[x - 1][y - 1];
      sum += a[x][y - 1] && a[x - 1][y - 1];
      if (y < m) sum += a[x - 1][y] && a[x - 1][y + 1];
    }
    if (dfs(x + (y == m), y % m + 1, sum)) return true;
  }
  return false;
}
bool work(int d, int x, int y) {
  if (!d) return true;
  if (d == 1) {
    if (y < m) return a[x][m] = 1, true;
    if (x < n) return a[x + 1][1] = 1, true;
    return false;
  }
  if (d == 2) {
    if (y < m - 1) return a[x][m - 1] = 1, true;
    if (x < n) return a[x + 1][2] = 1, true;
    return false;
  }
  if (d == 3) {
    if (y < m - 2) return a[x][m] = a[x][m - 2] = 1, true;
    if (x < n) {
      if (y > 4) return a[x + 1][1] = a[x + 1][3] = 1, true;
      if (y > 3) return a[x + 1][2] = a[x][m] = 1, true;
      return a[x + 1][1] = a[x][m - 1] = 1, true;
    }
    if (y == m - 2 && n == 3)
      return a[x][y] = a[x][y + 1] = 1, a[1][m] = a[2][m] = a[3][m] = 0, true;
    return false;
  }
}
void solve() {
  scanf("%d%d%d", &n, &m, &k), falg = false;
  if (k > 4 * (n - 1) * (m - 1)) return puts("-1"), void();
  if (n > m) swap(n, m), falg = true;
  a.resize(n + 1);
  for (int i = 1; i <= n; i++) {
    a[i].clear(), a[i].resize(m + 1);
  }
  if (n * m <= 22) {
    if (dfs(1, 1, 0))
      return print();
    else
      return puts("-1"), void();
  }
  int sum = 0;
  for (int i = 1, nw; i <= n; i++)
    for (int j = 1; j <= m; j++) {
      a[i][j] = 1, nw = sum;
      if (i > 1) {
        nw += a[i - 1][j] && a[i][j - 1];
        nw += a[i - 1][j] && a[i - 1][j - 1];
        nw += a[i][j - 1] && a[i - 1][j - 1];
        if (j < m) nw += a[i - 1][j] && a[i - 1][j + 1];
      }
      if (nw == k) return print();
      if (nw > k) {
        a[i][j] = 0;
        if (work(k - sum, i, j))
          return print();
        else
          return puts("-1"), void();
      }
      sum = nw;
    }
  if (sum == k)
    return print();
  else
    return puts("-1"), void();
}
int main() {
  scanf("%d", &T);
  while (T--) solve(), puts("");
}