j+1]=='0')s=1;if(s==1)a[i][j]=b[i][j];}}fo
(i=1;i<=ha
g;i=i+1){fo
(j=1;j<=lie;j=j+1){if(a[i][j]=='0'){if(a[i-1][j-1]=='+'||a[i-1][j-1]=='@'||a[i-1][j-1]=='?')t=1;if(a[i-1][j+1]=='+'||a[i-1][j+1]=='@'||a[i-1][j+1]=='?')t=1;if(a[i+1][j-1]=='+'||a[i+1][j-1]=='@'||a[i+1][j-1]=='?')t=1;if(a[i+1][j+1]=='+'||a[i+1][j+1]=='@'||a[i+1][j+1]=='?')t=1;if(a[i+1][j]=='+'||a[i+1][j]=='@'||a[i+1][j]=='?')t=1;if(a[i][j+1]=='+'||a[i][j+1]=='@'||a[i][j+1]=='?')t=1;if(a[i][j-1]=='+'||a[i][j-1]=='@'||a[i][j-1]=='?')t=1;if(a[i-1][j]=='+'||a[i-1][j]=='@'||a[i-1][j]=='?')t=1;}}}if(t==1)gotoleb3;}
=0;fo
(i=1;i<=ha
g;i=i+1){fo
(j=1;j<=lie;j=j+1){if(a[i][j]!='+'&&a[i][j]!='@'&&a[i][j]!='?')
=
+1;}}}while(a[u][v]!='#'&&
!=(ha
g*lie-ge));fo
(i=1;i<=ge;i=i+1){x=z[i]/lie+1;y=z[i]%lie+1;a[x][y]='#';}p
i
tf("");fo
(i=1;i<=lie;i=i+1){w=(i-1)/10+48;p
i
tf("%c",w);w=(i-1)%10+48;p
i
tf("%c",