from os import* s=read(0,481) i=len(s)/2+1 for c in s:i+=write(1,c>' 'and" O"[c!=s[i]]or c)