char f[30][88];y=6,x,d,i;main(c){for(;i<20;x-=~(d+=c<33)&1,y+=d%2-d%4/3*2)10<(c=getchar())?sprintf(f+y,"%*s%c",x,f+y,c):*f[i++]&&puts(f+i-1);}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page