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;
const int MOD = 1e9 + 7;
int fx[] = {-1, +0, +1, +0, +1, +1, -1, -1, +0};
int fy[] = {+0, -1, +0, +1, +1, -1, +1, -1, +0};
int day[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
template <typename T>
inline bool isLeap(T y) {
  return (y % 400 == 0) || (y % 100 ? y % 4 == 0 : false);
}
template <typename T>
inline T GCD(T a, T b) {
  a = abs(a);
  b = abs(b);
  if (a < b) swap(a, b);
  while (b) {
    a = a % b;
    swap(a, b);
  }
  return a;
}
template <typename T>
inline T EGCD(T a, T b, T &x, T &y) {
  if (a == 0) {
    x = 0;
    y = 1;
    return b;
  }
  T x1, y1;
  T d = EGCD(b % a, a, x1, y1);
  x = y1 - (b / a) * x1;
  y = x1;
  return d;
}
template <typename T>
inline T LCM(T x, T y) {
  T tp = GCD(x, y);
  if ((x / tp) * 1. * y > 9e18) return 9e18;
  return (x / tp) * y;
}
template <typename T>
inline T BigMod(T A, T B, T M = MOD) {
  A %= M;
  T ret = 1;
  while (B) {
    if (B & 1) ret = (ret * A) % M;
    A = (A * A) % M;
    B = B >> 1;
  }
  return ret;
}
template <typename T>
inline T InvMod(T A, T M = MOD) {
  return BigMod(A, M - 2, M);
}
template <typename T>
void Compress(T *in, int n, int f = 0) {
  vector<T> vv;
  for (int i = f; i < n + f; i++) vv.push_back(in[i]);
  sort(vv.begin(), vv.end()), vv.erase(unique(vv.begin(), vv.end()), vv.end());
  for (int i = f; i < n + f; i++)
    in[i] = lower_bound(vv.begin(), vv.end(), in[i]) - vv.begin();
}
template <typename T>
T scani(T &n) {
  n = 0;
  bool negative = false;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') negative = true;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    n = n * 10 + c - 48;
    c = getchar();
  }
  if (negative) n = ~(n - 1);
  return n;
}
template <typename T>
void write(T n, int type = true) {
  if (n < 0) {
    putchar('-');
    n = -n;
  }
  if (!n) {
    putchar('0');
    if (type == 32)
      putchar(' ');
    else if (type)
      putchar('\n');
    return;
  }
  char buff[22];
  int len = 0;
  while (n) buff[len++] = n % 10 + 48, n /= 10;
  for (int i = len - 1; i >= 0; i--) putchar(buff[i]);
  if (type == 32)
    putchar(' ');
  else if (type)
    putchar('\n');
}
int scans(char *a) {
  int i = 0;
  char c = 0;
  while (c < 33) c = getchar();
  while (c > 33) {
    a[i++] = c;
    c = getchar();
  }
  a[i] = 0;
  return i;
}
const int pSz = 2000006;
bool np[pSz + 10];
vector<int> prime;
int prime_size;
void sieve() {
  np[0] = np[1] = 1;
  prime.push_back(2);
  for (long long i = 4; i <= pSz; i += 2) np[i] = 1;
  for (long long i = 3; i <= pSz; i += 2) {
    if (!np[i]) {
      prime.push_back(i);
      for (long long j = i * i; j <= pSz; j += (i << 1)) np[j] = 1;
    }
  }
  prime_size = prime.size();
}
template <typename T>
inline T SqrDis(T x1, T y1, T x2, T y2) {
  return ((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2));
}
template <typename T>
inline T Area2(T Ax, T Ay, T Bx, T By, T Cx, T Cy) {
  T ret = Ax * (By - Cy) + Bx * (Cy - Ay) + Cx * (Ay - By);
  if (ret < 0) return ret = -ret;
  return ret;
}
const int N = 2000006;
const int M = 200005;
const unsigned long long hs = 3797;
int n, m, k, Time;
vector<vector<char> > in;
bool valid(int x, int y) { return x >= 1 && y >= 1 && x <= n && y <= m; }
bool connect(int x, int y) {
  for (int i = (0); i < (4); ++i) {
    int a = x + fx[i];
    int b = y + fy[i];
    if (valid(a, b) && in[a][b] == '*') return true;
  }
  return false;
}
int check(int x, int y) {
  int ret = 0;
  if (valid(x - 1, y + 1) && valid(x - 1, y) && in[x - 1][y + 1] == '*' &&
      in[x - 1][y] == '*')
    ret++;
  if (valid(x - 1, y - 1) && valid(x - 1, y) && in[x - 1][y - 1] == '*' &&
      in[x - 1][y] == '*')
    ret++;
  if (valid(x - 1, y - 1) && valid(x, y - 1) && in[x - 1][y - 1] == '*' &&
      in[x][y - 1] == '*')
    ret++;
  if (valid(x, y - 1) && valid(x - 1, y) && in[x][y - 1] == '*' &&
      in[x - 1][y] == '*')
    ret++;
  return ret;
}
bool ans_me(int x, int y, int cur) {
  Time++;
  if (Time > 60 * n * m) return false;
  if (cur == k) return 1;
  if (x > n) return 0;
  if (y > m) return ans_me(x + 1, 1, cur);
  if ((x == 1 && y == 1) || connect(x, y)) {
    int add = check(x, y);
    if (cur + add <= k) {
      in[x][y] = '*';
      if (ans_me(x, y + 1, cur + add)) return true;
    }
  }
  in[x][y] = '.';
  return ans_me(x, y + 1, cur);
}
int main() {
  int t;
  cin >> t;
  while (t--) {
    in.clear();
    cin >> n >> m >> k;
    int swp = 0;
    if (n < m) swap(n, m), swp = 1;
    Time = 0;
    vector<char> ch(m + 1, '.');
    for (int i = (0); i < (n + 1); ++i) in.push_back(ch);
    if (ans_me(1, 1, 0) == 0) {
      cout << -1 << '\n';
    } else {
      bool v = 1;
      for (int i = 1; i <= n; i++)
        for (int j = 1; j <= m; j++)
          if (in[i][j] == '*') v = 0;
      if (v) in[1][1] = '*';
      if (swp) {
        for (int j = 1; j <= m; j++) {
          for (int i = 1; i <= n; i++) {
            cout << in[i][j];
          }
          cout << "\n";
        }
      } else {
        for (int i = 1; i <= n; i++) {
          for (int j = 1; j <= m; j++) {
            cout << in[i][j];
          }
          cout << '\n';
        }
      }
    }
    cout << '\n';
  }
  return 0;
}