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