#include"stdio.h"
#include"malloc.h"
#define LEN sizeof(struct n)
struct n
{
long num;
struct n next;
};
void main()
{ int n,i;
scanf("%d",&n);
struct n*head ,*p1,*p2,*p;
p1=p2=(struct n)malloc(LEN);
scanf("%ld",&p1->num);
for(i=0;i
{ if(i==0) head=p1;
else p2->next=p1;
p2=p1;
p1=(struct student*)malloc(LEN);
scanf("%ld",&p1->num);
p1=p2;
}
p2->next=NULL;
p=head;
while(p!=NULL)
{
printf("%ld",p->num);
p=p->next;
}
}