New compiler
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
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.
Examples
Input #1
Answer #1
Submissions 5K
Acceptance rate 31%