import re n=s=raw_input() while n:print s;s,n=re.subn(r'/\|(?!\\)|(?