fork download
  1. a=11,c,d;main(b){char s[a];read(0,s,a);for(;a--;b+=s[a]);for(;s[d]!=46;d="-H$6 QZ"[c]/9,c++);s[d]=111+b/69%2*9;puts(s);}
Success #stdin #stdout 0s 5284KB
stdin
o..
.x.
...
stdout
o..
.x.
o..