import os while 1:print os.path.normpath(raw_input().replace(*' /')).replace(*'/ ')