#include<stdio.h>
#include<malloc.h>
typedef char elemtary;
typedef struct node
{
elemtary data;
struct node *next;
}lnode,*linklist;
void initlink(linklist &head)
{
head=(lnode *)malloc(sizeof(lnode));
head->next;
}
void insertlink(linklist &head)
{
linklist r,s;
char ch;
r=head;
scanf("%c",&ch);
while(ch!='#')
{
s=(lnode *)malloc(sizeof(lnode));
s->data=ch;
r->next=s;
s->next=NULL;
r=s;
scanf("%c",p->data);
}
}
void main()
{
linklist head,p;
char ch;
initlinksq(head);
insertlink(head);
p=head->next;
while(p)
{
p->data=ch;
printf("%c",p->data);
p=p->next;
}
}