#include <cstdio>
#include <algorithm>
using namespace std;


int main()
{
    int arr[5], t;
    for (int i = 0; i < 5; i++) {
        scanf("%d", &t); arr[i] = t * -1;
    }
    sort(arr, arr+5);
    for (int i = 0; i < 5; i++) {
        if (i) printf(" ");
        printf("%d", arr[i]*-1);
    }
    printf("\n");

    return 0;
}

