f = lambda s:[''.join(' o'[cmp(*x)==n]for x in zip(s,s[1:]))for n in-1,0,1] for _ in range(6): s = raw_input() print s print '\n'.join(f(s))
HELLOWORLD TESTCASE EXAMINATION ZSILENTYOUTH ABC ABCBA
HELLOWORLD o oo o o o o oo TESTCASE oo o o oo o EXAMINATION o o o o o o o o o o ZSILENTYOUTH o ooo o oo o o oo ABC oo ABCBA oo oo