#include<stdio.h>
#include<string.h>
int main(){
    int n;
    char s[81];
    char [10][101];
    int top=-1;
    if(scanf("%d",&n)!=1){
        printf("Invalid input");
        return 0;
    }
    scanf("%[^\n]",s);
    char *word=strtok(s," ");
    while(word!=NULl){
        strncpy(words[++top],word,100);
        words[top][100]='\0';
        word=strok(NuLl," ");
        
    }
    for(int i=top;i>=0;i--){
        printf("%s",words[i]);
        if(i>0)
        printf(" ")
    }
    return 0;
}