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