#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; vector ans(H,string(W,'0')); if(X!=0){ if(W%3==0||H%3==0){ cout<<-1< cnt(h*w,0); rep(i,cnt.size()){ if(X<=9){ cnt[i] = X; X = 0; break; } else{ cnt[i] = 9; X -= 9; } } if(X!=0){ cout<<-1<