#include<stdio.h>
#include<string.h>
int main(){
    int n;
    char sentence[101];
    char words[10][101];
    int wordCount = 0;
    scanf("%d",&n);
    if(n<0){
        printf("Invalid input");
        return 0;
    }
    getchar();
    gets(sentence);
   char *token = strtok(sentence," ");
    while(token != NULL)
    {
        strcpy(words[wordCount], token);
        wordCount++;
        token = strtok(NULL," ");
    }
    for(int i=wordCount-1;i>=0;i--)
    {
        printf("%s",words[i]);
        if(i > 0)
        printf(" ");
    }
    return 0;
}