Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"sort"
	"strconv"
)

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() int {
	n, err := strconv.Atoi(nextString())
	if err != nil {
		fmt.Printf("strconv.Atoi failed: %v\n", err)
	}
	return n
}

func main() {
	scanner.Split(bufio.ScanWords)

	n := 5
	array := make([]int, n)
	for i := 0; i < n; i++ {
		array[i] = nextInt()
	}
	sort.Slice(array, func(i, j int) bool { return array[i] > array[j] })
	arrayStr := fmt.Sprint(array)
	l := len(arrayStr)
	fmt.Println(arrayStr[1:(l - 1)])
}

C++: #include<iostream>
#include<iomanip>
#include<algorithm>
#include<cctype>
#include<cmath>
#include<cstdio>
#include<set>
#include<stack>
#include<string>
#include<sstream>
#include<map>
#include<queue>
#include<vector>

using namespace std;

int main() {
	long long int a,b,c,d,e;
	int s[5];
	cin >> a>>b>>c>>d>>e;
	s[0]=a;
	s[1]=b;
	s[2]=c;
	s[3]=d;
	s[4]=e;
	for(int i=4;i>0;i--)
		cout << s[i] << " ";
	cout << s[0] <<endl;
	
	return 0;
}

C++: #include <stdio.h>

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

		}
		
	}

	for (int i = 0; i < 5; i++)
	{
		printf ("%d", a[i]);
		
		if ( i != 5)
			printf (" ");
		else
			printf ("\n");
	}

	
	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;

main(){
	int x[5];
	for(int i=0;i<5;++i){
		cin>>x[i];
	}
	
	sort(x, x+5);
	
	for(int i=4;i>=0;--i){
		cout << x[i];
		if( i!=0 ){
			cout <<" ";
		}
	}
	cout<<endl;
}

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

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

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

int main(){
	vector<int> a;
	int n;

	for(int i=0 ; i<5 ; i++){
		cin >> n;
		a.push_back(n);
	}
	sort( a.begin(), a.end(), greater<int>());
	for(int i=0 ; i<=4 ; i++){
		cout << a[i]<< " " ;
	}
}

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

int main() {
    int numbers[5];
    int x;
    for (int i=0; i<5; i++) {
        cin >> x;
        numbers[i] = x;
    }
    for (int i=0; i<5; i++){
        for (int j=i; j<5; j++){
            if (numbers[j] > numbers[i]){
                int temp = numbers[j];
                numbers[j] = numbers[i];
                numbers[i] = temp;
            }
        }
        cout << numbers[i];
        if (i < 4) {
            cout << ' ';
        }
    }
    return 0;
}

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

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

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

int main()
{
	 string input;
 while(cin && getline(cin, input)){
  int a, b, c, d, e;
  istringstream is(input);
  is>>a>>b>>c>>d>>e;
  vector<int> buf;
  buf.push_back(a);
  buf.push_back(b);
  buf.push_back(c);
  buf.push_back(d);
  buf.push_back(e);
  sort(buf.begin(),buf.end());
  reverse(buf.begin(),buf.end());
  for(int i=0; i<buf.size(); i++){
   if(i!=0) cout<<" ";
   cout<<buf[i];
  }
  cout<<endl;
 }
}

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

typedef long long ll;

int main() {
	ll a[5];
	for (int i = 0; i < 5; i++) {
		cin >> a[i];
	}
	sort(a, a + 5);
	for (int i = 0; i < 5; i++) {
		if (i) cout << " ";
		cout << a[4 - i];
	}
	cout << endl;
}

C++: #include<cstdio>
#include<set>
using namespace std;
int main(){
  multiset<int,greater<int> > m;
  for(int i=0;i<5;i++){
    int n; scanf("%d",&n);
    m.insert(n);
  }
  int count=0;
  for(int const& a:m)
    printf(++count==5?"%d\n":"%d ",a);
}

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

int main(void){
  int num[5];

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

  stable_sort( num , num+5 );

  for( int i = 4 ; i >= 0 ; i-- ){
    if( i == 4 ) cout << num[i];
    else cout << " " << num[i];
  }

  cout << endl;

  return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <cstring>
#include <climits>
#include <cmath>
#include <cfloat>

using namespace std;

int num[5];

int main()
{
	
	while(!cin.eof())
	{
		for( int i=0;i<5;i++)
		{
			cin >> num[i];
		}

		sort(num, num+5, greater<int>());

		cout << num[0] <<" "<< num[1] <<" "<< num[2] <<" "<< num[3]<<" "<< num[4] <<endl;
	}

	return 0;
}

C++: #define scanf_s scanf
//#define gets_s gets
#include <stdio.h>
#include <string>
#include <iostream>
#include <math.h>
using namespace std;
#define MAX 81
#define _MAX 100
#define ABC 26
int main(void)
{
	int a[5],b;
	for (int i = 0; i < 5;++i){
		scanf_s("%d", &a[i]);
	}
	for (int i = 0; i < 5; ++i) {
		for (int j = 4; j > i; --j) {
			if (a[j] > a[j - 1]) {
				b = a[j - 1]; a[j - 1] = a[j]; a[j] = b;
			}
		}
	}
	for (int i = 0; i < 5; ++i) {
		if (i != 0)printf(" ");
		printf("%d", a[i]);
	}
	printf("\n");
}

C++: #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
  int a, b, c, d, e;
  vector<int> v;
  scanf("%d %d %d %d %d", &a, &b, &c, &d, &e);
  v.push_back(a);
  v.push_back(b);
  v.push_back(c);
  v.push_back(d);
  v.push_back(e);
  sort(v.begin(), v.end(), greater<int>());
  for (int i = 0; i < v.size(); ++i) {
    cout << v[i];
    if (i < v.size() - 1) {
      cout << " ";
    }
  }
  cout << endl;
  return 0;
}

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

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

int main() {
	// your code goes here
	long long int a[5];
	for(int i=0;i<5;i++) cin >> a[i];
	for(int i=4;i>=0;i--) cout << a[i] << " ";
	cout << endl;
	return 0;
}

C++: #include<iostream>
#include<algorithm>
#include<cstdio>
using namespace std;
int main(){
  int a[5];
  for(int i=0;i<5;i++){
    cin >> a[i];
  }
  sort( a , a + 5 , greater<int>() );
  for(int i=0;i<5;i++){
    if(i==4)cout << a[i] << endl;
    else cout << a[i] << ' ';
  }
}

C++: #include <bits/stdc++.h>
using namespace std;

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

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

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

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

using namespace std;
int main(void)
{
	int a[5];
	for(int i = 0;i<5;i++)
	{
		scanf("%d",&a[i]);
	}
	sort(a,a+5);
	reverse(a,a+5);
		for(int i = 0;i < 5;i++)
		{
			printf("%d",a[i]);
			if(i <= 4) printf(" ");
		}



	return 0;
}

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

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

C++: #include<stdio.h>

int d,s;

int main(){
	while(scanf("%d",&d)!=EOF){
		s=0;
		for(int i=d;i<600;i+=d){
			s+=i*i*d;
		}
		printf("%d\n",s);
	}


	return 0;
}