#include<stdio.h>
#include<stdlib.h>
#include<ctype.h>
int main(){
int n;
if(scanf("%d",n)!=1){
printf("Invalid input");
return 0;
}
if(n<=0 || n>10){
printf("Invalid Input");
return 0;
}
int participants[n];
for(int i=0;i<n;i++){
if(scanf("%d",&participants[i]!=1){
printf("Invalid Input");
return 0;
}
if(participants[i]<-10000 || participants[i]>10000){
printf("Invalid Input");
return 0;
}
}
for(int i=0;i<n;i++){
printf("%d",participants[i];
}
return 0;
}