Go: package main

import (
        "fmt"
        "sort"
)


func main() {
        var s []int
        var n int
        for i := 0; i < 5; i++ {
                fmt.Scanf("%d", &n)
                s = append(s, n)
        }
        sort.Ints(s)
        for i:= 1; i <= len(s); i++ {
                fmt.Printf("%d", s[len(s)-i])
                if i < len(s) {
                        fmt.Printf(" ")
                }
        }
        fmt.Printf("\n")
}

C++: #include <iostream>
#include <algorithm>
#include <functional>

int main()
{
	int ns[5];
	std::cin >> ns[0] >> ns[1] >> ns[2] >> ns[3] >> ns[4];
	std::sort(ns, ns+5, std::greater<int>());
	std::cout << ns[0] << " " << ns[1] << " " << ns[2] << " " << ns[3] << " "	<< ns[4];
	std::cout << std::endl;
	return 0;
}

C++: #include<iostream>
using namespace std;
int main()
{
	int x, b, c, d, e, a[6], i, j;
	cin >> x >> b >> c >> d >> e;
	a[0] = x;
	a[1] = b;
	a[2] = c;
	a[3] = d;
	a[4] = e;
	for ( j = 0;j < 5; j++)
	{	for ( i = 0;i < 5; i++)
		{
			if (a[i] >= a[i + 1])a[i + 1] = a[i];
		}
	}
	cout << a[0] << " " <<a[1] << " " << a[2] << " " << a[3] << " " << a[4];
return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <functional>
#include <vector>


using namespace std;

int main() {
	
	vector<int> v;
	v.resize(5);
	for(int i = 0; i < 5; i++) {
		cin >> v[i];
	}
	
	sort(v.begin(), v.end(), greater<int>());
	
	for(int i = 0; i < 4; i++) {
		cout << v[i] << " ";
	}
	cout << v[4];
	
	cout << endl;
	
	return 0;
}

C++: #include<iostream>

int main(){
   int i[5],a,b,n;
   for(a=0;a<5;++a){
    std::cin>>i[a];
    }
    for(a=0;a<4;++a){
        for(b=a+1;b<5;++b){
        if(i[a]<i[b]){
        n=i[a];
        i[a]=i[b];
        i[b]=n;
        }
        }
  }
  
      for(a=0;a<5;++a){
      std::cout<<i[a]<<std::endl;
      }
    return 0;
    }

C++: #include <iostream>
#include <functional>
#include <algorithm>

using namespace std;

int main()
{
	int i;
	int num[5];
	
	for(i = 0; i < 5; i++)
	{
		cin >> num[i];
	}
	
	sort(num, num + 5, greater<int>());
	
	for(i = 0; i < 5; i++)
	{
		cout << num[i] << endl;
	}
	
	return 0;
	
}

C++: #include <iostream>
#include <algorithm>
using namespace std;

int main(void){
    int a[5];
    int tmp;
    for(int i=0;i<5;i++){
        cin>>tmp;
        a[i]=tmp*(-1);
    }
    sort(a,a+5);
    for(int i=0;i<5;i++){
        cout<<-1*a[i];
        if(i<4){
            cout<<" ";
        }
        else{
            cout<<endl;
        }
    }
    return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	int n[5];
	int tmp;
	for(int i = 0; i<5; ++i) cin >> n[i];	
	for(int i = 0; i<5; ++i) {
		for(int j = i+1; j < 5; ++j) {
			if(n[i] < n[j]){
				tmp = n[i];
				n[i] = n[j];
				n[j] = tmp;
			}
		}
	}
	for(int i = 0; i<5; ++i){
		if(i == 4) { 
			cout << n[i];
		}else {
			cout << n[i] << " ";
		}
	}
	return 0;
}

C++: #include <iostream>
using namespace std;

int main()
{
	int n[5];
	int x=0;

	for(int i=0 ;i<5 ;i++){
		cin >> n[i];

	}
	for(int i=0 ;i<5 ;i++){
		for(int j=i+1 ;j<5 ;j++){
			if(n[i] < n[j]){
				x = n[i];
				n[i] = n[j];
				n[j] = x;
			}
		}
	}

	for(int i=0 ;i<5 ;i++)
		cout << n[i] << ' ';

	
	return 0;
}

C++: #include<stdio.h>
#include<algorithm>
using namespace std;

int a[5]={0};
int b[4]={0};
int hit=0,blow=0;

int main()
{
    for(int i=0;i<5;i++)
    {
        scanf("%d",&a[i]);
    }

    sort(a,a+5);
    for(int i=4;i>=0;i--)
    {
        printf("%d",a[i]);
        if(i!=0)
        {
            printf(" ");
        }
    }
    printf("\n");
    return 0;
}

C++: #include<iostream>
#include<sstream>
#include<fstream>
#include<cstdio>
#include<vector>
#include<list>
#include<map>
#include<stack>
#include<queue>
#include<deque>
#include<set>
#include<algorithm>
#include<cmath>
#include<cstdlib>
#include<string>
using namespace std;

bool order(int a,int b){
	return a>b;
}	

int main(){
	vector<int> w;
	for(int x=0;x<5;++x){
		int j;scanf("%d",&j);
		w.push_back(j);
	}
	sort(w.begin(),w.end(),order);
	for(int x=0;x<4;++x){
		cout<<w[x]<<" ";
	}
	cout<<w[4]<<endl;
	return 0;
}

C++: #include<iostream>
#include<algorithm>

int main(void){
    int a[5];
    for(int i=0;i<5;i++) std::cin>>a[i];
    std::sort(a,a+5);
    for(int i=4;i>=0;i--) std::cout<<(i==4?"":" ")<<a[i];
    std::cout<<std::endl;

    return 0;
}

C++: #include<bits/stdc++.h>
#include<vector>
#include<list>
#include<stack>
#include<queue>
#include<algorithm>
using namespace std;

/**
 * vector<int>ar(3);
 * for(auto&e:ar){
 *     scanf("%d",&e);
 * }
 * sort(ar.begin(),ar.end())
 * int sum=accumulate(ar.begin(),ar.end(),0);
 **/

int main(){
    int mod=1000000007;
    vector<int> a(5);
    for(auto&e:a) {
        scanf("%d",&e);
    }
    sort(a.begin(),a.end());
    for(int i=4;i>-1;i--) {
        printf("%d",a[i]);
    }
    printf("\n");
    return 0;
}

C++: #include <iostream>
#include<math.h>
using namespace std;

int main() {
    int num[5];
    for(int i=0; i<5; i++) {
        cin>>num[i];
    }
    sort(num,num+5);
    for(int s=4; s>=0; s--) {
        cout<<num[s]<<" ";
    }
    return 0;
}

C++: #include<bits/stdc++.h>

using namespace std;

int main()
{
    int a,num=5;
    vector<int> ar;
    while(num--)
    {
        cin>>a;
        ar.push_back(a);
    }
    sort(ar.rbegin(),ar.rend());
    for(int i=0;i<ar.size();i++)
    {
        cout<<ar[i];
        if(i!=ar.size()-1 && ar[i]!=ar[i+1])
            cout<<" ";
    }

    return 0;
}

C++: #include <iostream>
#include <algorithm>
using namespace std;
int main() {
	int array[5];
	cin >> array[0] >> array[1] >> array[2] >> array[3] >> array[4];
	sort(array, array + 5);
	cout << array[4] << " " << array[3] << " " << array[2] << " " << array[1] << " " << array[0] << endl;
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  int a[10]={},b=0;
  for(int i=0;i<5;i++)
    cin>>a[i];
  for(int j=0;j<5;j++)
    for(int i=1;i<5;i++)
      if(a[i-1]<a[i]) swap(a[i-1],a[i]);

  for(int i=0;i<5;i++)
    cout<<a[i]<<endl;
  return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
int a[5];
for( i = 0; i < 5; i++){
cin >> a[i];
}
sort( a, a + 5, greater<int>());
for(int s = 0; s < 5; s++){
cout << a[s] << " ";
} cout << endl;
return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  vector<int> a;
  for(int i=0;i<5;i++){
    int b;cin>>b;
    a.push_back(b);
  }
  sort(a.begin(),a.end());
  for(int i=0;i<5;i++){
    cout<<a[4-i];
    if(i!=5)
      cout<<" ";
  }cout<<endl;
  return 0;
}

C++: #include <iostream>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <ctime>
#include <cstring>
#include <climits>
#include <algorithm>
#include <map>
#include <set>
#include <stack>
#include <vector>
#include <queue>
#include <bitset>
#include <string>
using namespace std;

#define REP(i,n) for(int i=0; i<n; i++)
#define RPA(i,s,e) for(int i=s; i<=e; i++)
#define RPD(i,s,e) for(int i=s; i>=e; i--)
#define PB(a) push_back(a)
#define MP(i,s) make_pair(i,s)
#define SZ(a) (int)(a).size()
#define ALL(a) (a).begin(), (a).end()
#define PRT(a) cout << (a) << endl
#define PRT2(a,b) cout << (a) << " " << (b) << endl
#define PRT3(a,b,c) cout << (a) << " " << (b) << " " << (c) << endl

typedef vector<int> VI;
typedef long long LL;
typedef pair<int,int> P;


void coding() {
	vector<int> v(5);
	for(int i=0; i<5; i++) {
		cin>>v[i];
	}
	sort(ALL(v), greater<int>());
	for(int i=0; i<5; i++) {
		printf("%d%c", v[i], i==4 ? '\n' : ' ');
	}
}

// #define _LOCAL_TEST

int main() {
#ifdef _LOCAL_TEST
	clock_t startTime = clock();
	freopen("a.in", "r", stdin);
#endif

	coding();

#ifdef _LOCAL_TEST
	clock_t elapsedTime = clock() - startTime;
	cout << endl;
	cout << (elapsedTime / 1000.0) << " sec elapsed." << endl;
	cout << "This is local test" << endl;
	cout << "Do not forget to comment out _LOCAL_TEST" << endl << endl;
#endif
}