// editor2
#include<stdio.h>
#include<string.h>
int main(){
    int n;
    char sentence[101];
    char stack[20][101];
    int top = -1;
    scanf("%d",&n);
    if(n<0){
        printf("Invalid input");
        return 0;
    }
    getchar();
    fgets(sentence,sizeof(sentence),stdin);
    sentence[strcspn(sentence,"\n")]='\0';
    char *word = strtok(sentence,"");
    while(word != NULL){
strcpy(stack[++top],word);
word = strtok(NULL,"");
}
for (int i = top; i>=0;i--){
    printf("%s",stack[i]);
    if(i!=0)
    printf("");
}
        return 0;
        
    }