#include <stdio.h>
#include <string.h>
int main()
{
FILE *fp1,*fp2,*fp3;
char filename[20],str[1000];
char ch1,ch2,ch;
//char s[1000];
scanf("%s",filename);
if((fp1=fopen(filename,"w+"))==NULL)
{
printf("error");
exit(0);
}
ch=getchar();
ch=getchar();
while(ch!='#')
{
fputc(ch,fp1);
ch=getchar();
}
fclose(fp1);
if((fp2=fopen(filename,"r"))==NULL)
{
printf("error");
exit(0);
}
while(!feof(fp2))
{
ch1=fgetc(fp2);
ch2=fgetc(fp2);
if(ch1=='/'&&ch2=='/')
{
while(ch=fgetc(fp2)!=EOF)
{
putchar((char)ch);
}
}
}
return;
}