#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
    char input[10];
    int n, i;
    char sentence[101];
    
    
    fgets(input, sizeof(input), stdin);
    n = atoi(input);
    
    fgets(sentence, sizeof(sentence), stdin);
    
    char stack[10][101];
    int top = -1;
    
    char *word = strtok(sentence, " ");
    count = 0;
    while (word != NULL && count < n) {
        strcpy(stack[++top], word);
        word = strtok(NULL, " ");
        count++;
    }
    
    
    for(i = top; i >= 0; i--) {
        printf("%s ", stack[i]);
    }
    
    
    return 0;
}