HZNUOJ

Delete Comments Plus

Tags:
Time Limit:  1 s      Memory Limit:   32 MB
Submission:42     AC:2     Score:99.73

Description

We have dealt with double slash comments in The Resurrection Competition. How about dealing with all kinds of comments today?

Your task is extremely easy, delete all comments in given codes and keep the format.

Input

A common cpp source code. The characters in each line are less than 1000, there are not more than 100 lines. The invisible characters in the input are only '\t', ' ', ,'\n', '\r'.

Output

The code without comments. If a line only has comments and invisible characters, delete this line. (But if the line just has invisible characters, don’t delete it)

See more details in sample.

Samples

input
main() { // This is a comment /* This is a comment, too */ printf(“Hello World!”);//also a comment }
output
main() { printf(“Hello World!”); }

Author

CHEN, Yupeng