#include int ans[5][5]; int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); for(int i=1;i<=2;i++) for(int j=1;j<=2;j++) ans[i][j] = -1; if(a%3==0) ans[1][1] = ans[2][1] = 0; if(a%3==1) ans[1][2] = ans[2][2] = 0; if(b%3==0) ans[1][1] = ans[1][2] = 0; if(b%3==1) ans[2][1] = ans[2][2] = 0; for(int i=1;i<=2&&i<=b;i++) { for(int j=1;j<=2&&j<=a;j++) { if(ans[i][j]==-1) { ans[i][j] = c<9?c:9; c -= ans[i][j]; } } } if(c>0) printf("-1"); else { for(int i=1;i<=b;i++) { for(int j=1;j<=a;j++) { printf("%d",ans[i%3][j%3]); } printf("\n"); } } printf("\n"); }