#include <stdio.h>
main()
{
FILE * fp_i;
FILE * fp_o;
fp_i = fopen("input.txt", "r");
fp_o = fopen("output.txt", "w");
char ch;
int sign;
while((ch=fgetc(fp_i)) != EOF){
if (ch == '/' ){ ch=fgetc(fp_i);
if (ch == '/'){
while(ch != '\n'){
ch=fgetc(fp_i);
}
fputc('\n', fp_o); }else if(ch == '*'){
ch = fgetc(fp_i);
sign = ;
while(sign != && ch != '\n'){
if (ch == '*'){
ch = fgetc(fp_i);
if (ch == '/'){
sign = ;
}
}else{
ch = fgetc(fp_i);
}
}
fputc('\n', fp_o); }else{
fputc('/', fp_o);
fputc(ch, fp_o);
}
}else{
fputc(ch, fp_o);
}
}
fclose(fp_i);
fclose(fp_o);
}