#include <bits/stdc++.h>
using namespace std;
struct Node
{
    int val;
    Node *next;
    Node():val(0),next(NULL){}
};
int main()
{
    int n,x;
    cin>>n;
    Node *head=new Node();
    auto q=head;
    while(n--){
        cin>>x;
        q->next=new Node();
        q->next->val=x;
        q=q->next;
    }
    q=head->next;
    while(q){
        cout<<q->val<<" ";
        q=q->next;
    }
    return 0;
}