main=interact$unlines.foldr(&)[].words w&x|w>"/",w<":"=w:x w&(x:y:z)=unwords[x,y,w]:z