i=5 while~0:_=raw_input();c='okiram'[i];print _.replace(c,c.upper());i-=c in _
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page