using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static int[] NList => ReadLine().Split().Select(int.Parse).ToArray(); static int[][] NArr(long n) => Enumerable.Repeat(0, (int)n).Select(_ => NList).ToArray(); public static void Main() { Solve(); } static void Solve() { var c = NList; var (h, w, x) = (c[0], c[1], c[2]); if (x < h + w - 2 || (h + w - 2 - x) % 4 != 0) { WriteLine(-1); return; } var ans = new bool[h][]; for (var i = 0; i < h; ++i) { ans[i] = new bool[w]; if (i % 2 == 1) for (var j = 0; j + 1 < w; ++j) ans[i][j] = true; } var rest = x - h - w + 2; for (var i = 2; i + 2 < h; i += 4) { if (rest == 0) break; for (var j = w - 3; j >= 0; j -= 2) { if (rest == 0) break; ans[i][j + 1] = false; ans[i + 1][j] = false; ans[i + 1][j + 2] = true; ans[i + 2][j + 1] = false; rest -= 4; } } if (h % 4 == 3) for (var j = 0; j + 3 < w; j += 4) { if (rest == 0) break; ans[h - 3][j + 1] = true; ans[h - 2][j] = false; ans[h - 2][j + 2] = false; ans[h - 1][j + 1] = false; if (j + 3 < w) { ans[h - 3][j + 3] = false; ans[h - 1][j + 3] = true; } rest -= 4; } if (rest > 0) { WriteLine(-1); return; } WriteLine(string.Join("\n", ans.Select(ai => string.Concat(ai.Select(m => m ? '#' : '.'))))); } }