#include <stdio.h>
#include <stdlib.h>
int g=1;
int *que;
int main(){
int i,j,k;
int a,b;
int **mat;
if(mat == NULL){
return 0;
}
for(int l=0; l<a; l++){
if(mat[l] == NULL){
return 0;
}}
for(i=0;i<a;i++){
for(j=0;j<b;j++){
mat[i][j]=g;
g++;
}}
for(i=0;i<a;i++){
for(j=0;j<b;j++){
}
}
for(int l=0; l<a; l++){
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBnPTE7CmludCAqcXVlOwoKaW50IG1haW4oKXsKICAgIGludCBpLGosazsKICAgIGludCBhLGI7CiAgICBpbnQgKiptYXQ7CiAgICBzY2FuZigiJWQgJWQiLCZhLCZiKTsKCiAgICBtYXQgPSAoaW50ICoqKW1hbGxvYyg0KmEpOwogICAgICAgIGlmKG1hdCA9PSBOVUxMKXsKICAgICAgICAgICAgcHJpbnRmKCJFUlJPUlxuIik7CiAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgIH0KZm9yKGludCBsPTA7IGw8YTsgbCsrKXsKICAgIG1hdFtsXSA9IChpbnQgKiltYWxsb2MoNCpiKTsKICAgICAgICBpZihtYXRbbF0gPT0gTlVMTCl7CiAgICAgICAgICAgIHByaW50ZigiRVJST1JcbiIpOwogICAgICAgICAgICByZXR1cm4gMDsKICAgICAgICB9fQogICAgCiAgICBmb3IoaT0wO2k8YTtpKyspewogICAgICAgIGZvcihqPTA7ajxiO2orKyl7CiAgICAgICAgICAgIG1hdFtpXVtqXT1nOwogICAgICAgICAgICBnKys7CiAgICAgICAgfX0KCQogICAgZm9yKGk9MDtpPGE7aSsrKXsKICAgICAgICBmb3Ioaj0wO2o8YjtqKyspewogICAgICAgICAgICBwcmludGYoIiVkICIsbWF0W2ldW2pdKTsKICAgICAgICB9CiAgICAgICAgcHJpbnRmKCJcbiIpOwogICAgfQogICAKCiAgICBmb3IoaW50IGw9MDsgbDxhOyBsKyspewogICAgICAgIGZyZWUobWF0W2xdKTsKICAgIH0KICAgIGZyZWUobWF0KTsKICAgIHJldHVybiAwOwp9Cg==