#include
#include
int main()
{
char name[20], ch;
FILE *fp;
gets(name);
fp=fopen(name,"w");
if(fp==NULL)
{
printf("file not!!!");
exit(0);
}
ch=getchar();
while(ch!='#')
{
fputc(ch,fp);
ch=getchar();
}
fclose(fp);
return 0;
}