#include int main() { int i,j,r,c,l=0,dobre=1; char a[1002],b[1002]; scanf("%d%d",&r,&c); while ((r!=0)&&(c!=0)) { for (j=0;j