#include<stdio.h>

/*本来想试一下冒泡排序,结果没写出来唉
void bubble_sort(int arr[], int sz) {
    int i = 0;
    int j = 0;
    for (i = 0; i < sz - 1; i++) {
        int flag = 1;
        for (j = 0; j < sz - i - 1; j++) {
            if (arr[j] < arr[j + 1]) {
                int m = arr[j];
                arr[j] = arr[j + 1];
                arr[j + 1] = m;
                flag = 0;
            }
        }
        if (flag == 1) {
            break;
        }
    }
}
int main() {
    int arr[] = {0};
    for (int i = 9; i >= 0; i--) {
        scanf("%d", &arr[i]);
    }
    int i = 0;
    int sz = sizeof(arr) / sizeof(arr[0]);
    bubble_sort(arr, sz);
    for (int i = 0; i < sz; i++) {
        printf("%d", arr[i]);
    }
}
*/

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