import Data.List f"/"="\n" f s=nub s++f('/':(s\\nub s)) main=interact$(>>=f).lines