#include <stdio.h>
#include<string.h>
int main() {
    int n;
    char str[100];
    char *words[20];
    scanf("%d", &n);
    gechar();
    fgets(str, sizeof(str), stdin);
    int count = 0;
    char *token = strtok(str, "\n");
    while(token != NULL) {
        words[count++] = token;
    }
    for(int i = count - 1;i>=0;i--) {
        printf("%s", words[i]);
        if(i != 0)
        printf(" ");
    }
    return 0;
}