#include <stdio.h>
#include<malloc.h>

int main() {
    int* arr = (int*)malloc(10 * sizeof(int));
    for (int i = 0; i < 10; i++)
        scanf("%d", &arr[i]);
    for (int j = 9; j >= 0; j--)
        printf("%d ", arr[j]);


}