eolymp
Competitions

Робота з рядками

New compiler

You need to convert many old programs for the new version of the compiler. To do this, replace "->" to "." everywhere except for the comments. Comments in this programming language begin with the characters "//" and continue until the end of the line. Write a program that performs this transformation.

Input

The input file contains from 1 to 500 lines no longer than 50 characters from the ASCII-code from 32 to 127 – the text of the program you want to convert.

Output

In the output file converted to bring the program text.

Time limit 1 second
Memory limit 64 MiB
Input example #1
Test* t = new Test();
t->a = 1;
t->b = 2; 
t->go(); // a=1, b=2 -> a=2, b=3
Output example #1
Test* t = new Test();
t.a = 1;
t.b = 2; 
t.go(); // a=1, b=2 -> a=2, b=3