w,h,x = map(int,input().split()) if x>36: print(-1) else: y = x//9 z = x%9 m = [[0 for _ in range(w)]for __ in range(h)] for i in range(h): for j in range(w): if i%3 == 0: if j%3 == 0: m[i][j] = y+z else: m[i][j] = y else: m[i][j] = y for i in range(h): for j in range(w): print(m[i][j],end = "") print()