#include<stdio.h>
#include<stdlib.h>

typedef struct Node{
    int data;
    struct Node *next;
}node;

void create(int num){
    node *newnode=(node*)malloc(1*sizeof(node));
    newnode->data=num;
    newnode->next=NULL;
    if(head==NULL){
        head=newnode;
        tail=newnode;
    }
    else{
        tail->next=newnode;
        tail=newnode;
    }
}

int main(){
    int size,num;
    scanf("%d",&size);
    for(int i=1;i<=n;i++){
        scanf("%d",&num);
        create(num);
    }
    display();
    return 0;
}