#include<bits/stdc++.h>
using namespace std;
struct node
{
int data;
struct node*next;
}*head,*p,*r;
int main()
{
int n,a;
cin>>n;
head=NULL;
p=new node;
head=p;
for(int i=1;i<=n;i++)
{
cin>>a;
r=new node;
r->data=a;
p->next=r;
p=r;
}
p->next=NULL;
p=head->next;
while(p->next!=NULL)
{
cout<<p->data<<" ";
p=p->next;
}
cout<<p->data;
return 0;
}