#include #include using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf 1000000000 int main(){ int W,H,X; cin>>W>>H>>X; if(W%3!=2||H%3!=2){ cout<<-1<36){ cout<<-1< cnt(4,0); rep(i,4){ if(X<=9){ cnt[i] = X; break; } else{ cnt[i] = 9; X -= 9; } } vector ans(H,string(W,'0')); rep(i,H){ rep(j,W){ int x = i%3,y = j%3; if(x<=1&&y<=1){ ans[i][j] = '0' + (cnt[x*2+y]); } } } rep(i,H){ cout<