#include <stdio.h>

int main() {
    long number[10];
    int i=0;
    while(scanf("%ld",&number[i])!=EOF){
        i++;
    }
    for(int i=9;i>=0;i--){
        printf("%ld ",number[i]);
    }
    return 0;
}