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