Go: package main

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

var maxint = 10000
var scanner = bufio.NewScanner(os.Stdin)

func nextInt() (int, error) {
	scanner.Scan()
	return strconv.Atoi(scanner.Text())
}

func main() {
	scanner.Split(bufio.ScanWords)
	arr := make([]int, 10)
	for i := range arr {
		n, _ := nextInt()
		arr[i] = n
	}

	sort.Slice(arr, func(i, j int) bool {
		return arr[i] >= arr[j]
	})

	arrStr := fmt.Sprintf("%+v", arr[0:3])
	arrStr = arrStr[1:(len(arrStr) - 1)]
	arrStr = strings.Replace(arrStr, " ", "\n", -1)
	fmt.Println(arrStr)
}

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

int main(){
	int nyuryoku,high=0,low=0,middle=0,flag=0;
	
	for(int i=0;i<10;i++){
	cin>>nyuryoku;
	if(flag==0){
	high = nyuryoku;
	flag++;
	}else{
	if(nyuryoku>low){
		if(nyuryoku>middle){
			if(nyuryoku>high){
				high = nyuryoku;
			}else
				middle = nyuryoku;
			}else
				low = nyuryoku;
		}
		}
	}
	cout<<high<<endl;
	cout<<middle<<endl;
	cout<<low<<endl;
return 0;
}

C++: //#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
//#include <cstdio>
//#include <cstdlib>
//#include <cmath>
#include <iostream>
#include <algorithm>
#include <cstring>
#include <vector>
#include <string>
#include <map>
#include <list>
#include <queue>
#include <set>
using namespace std;

int main(void){

	int height[20];
	
	for(int i=0;i<10;i++){
		cin >> height[i];
	}
	
	sort(height, height + 10, greater<int>());
	
	for(int i=0;i<3;i++){
		cout << height[i] << endl;
	}
	

	return 0;
}

/*
for(i=0;i<N;i++){
	cin >> X[i];
}


for(i=0;i<N;i++){
	for(j=0;j<N;j++){
		cin >> X[i][j];
	}
}
*/

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

using namespace std;


int main(){
	int a[10];
	for(int i=0;i<10;i++){
		cin>>a[i];
	}
	sort(a,a+10);

	cout<<a[9]<<endl<<a[8]<<endl<<a[7]<<endl;

}

C++: #include <iostream>
#include <algorithm>
using namespace std;
int main(){
        int a[10],i;
        for(i=0;i<10;i++) cin >> a[i];
        sort(a,a+10);
        for(i=9;i>6;i--) cout << a[i] << endl;
        return 0;
}
~                                                                                                                                                                                    
~                                                                                                                                                                                    
~                                                                                                                                                                                    
~                                                                                                                                                                                    
~                                                                                                                                                                                    
~

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

int main() {
	int m[10], v, j;
	for(int k=0; k<10; k++)
		cin >> m[k];
	for(int i=1; i<10; i++){
		v = m[i];
		j = i-1;
		while(j>=0 && m[j]<v){
			m[j+1] = m[j];
			j--;
			m[j+1] = v;
		}
	}
	for(int l=0; l<3; l++)
		cout << m[l] << endl;
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
int main() {
    int a[10];
    for(int i = 0 ; i < 10 ; i++) cin >> a[i];
    sort(a, a + 10);
    for(int i = 0 ; i < 3 ; i++)
        cout << a[9 - i] << endl;
}

C++: #include<iostream>
#include<cmath>
#include<string>
#include<cctype>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
        vector<int>ar(10);
        for(auto&e:ar){
                scanf("%d",&e);
        }
        sort(ar.begin(),ar.end());
        printf("%d\n%d\n%d\n",ar[9],ar[8],ar[7]);
        return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  int a[11];
  int temp;
  for(int i=0;i<10;i++){
    cin>>a[i];
  }
  for(int j=0;j<10;j++){
    for(int i=0;i<10;i++){
      if(a[i]>a[i-1]){
	temp=a[i];
	a[i]=a[i-1];
	a[i-1]=temp;
      }
    }
  }
  for(int i=0;i<3;i++){
    cout<<a[i]<<endl;
  }
  return(0);
}

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

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

    for (int i = 0; i < 10; i++) {
        cin >> n;
        num.push_back(n);
    }

    sort(num.begin(), num.end(), greater<int>());

    for (int i = 0; i < 3; i++) 
        cout << num[i] << endl;
}

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int i,j,a[11];
	for(i=1;i<=10;i++){
	cin>>a[i];
	}
	sort(a,a+10);
	for(j=10;j>=8;j--){
		cout<<a[j]<<" ";
	}
return 0;
}

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

using namespace std;

int main()
{
	int mon[10];
	int n1, n2;
	for(int i = 0;i <10; i++){
		cin >> mon[i];
	}
	
	int first = 0;
	for(int i = 0; i < 10; i++){
		if(first < mon[i]){
			first = mon[i];
			n1 = i;
		}
	}
	
	int second = 0;
	for(int i = 0; i < 10; i++){
		if(second < mon[i] && i != n1){
			second = mon[i];
			n2 = i;
		}
	}
	
	int third = 0;
	for(int i = 0; i < 10; i++){
		if(third < mon[i] && i != n1 && i != n2) third = mon[i];
	}
	
	printf("%d\n%d\n%d\n", first, second, third);
	
	return 0;
}

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

int main() {
    std::set<int> s = {1819
,2003
,876
,2840
,1723
,1673
,3776
,2848
,1592
,922};
    auto itr = s.end();
    --itr;
    std::cout << *itr << std::endl;
    --itr;
    std::cout << *itr << std::endl;
    --itr;
    std::cout << *itr << std::endl;
    return 0;
}

C++: #include <iostream>
#include <array>
#include <algorithm>
  
int main(){
    std::array<u_int, 10> heights;
     
    for (u_int i = 0; i < 10; ++i){
        std::cin >> heights[i];
    }
     
    std::sort(heights.begin(), heights.end(), std::greater<u_int>());
     
    for (u_int i = 0; i < 3; ++i){
        std::cout << heights[i] << std::endl;
    }
	
    return 0;
}

C++: //by azidoazideazide(c2n14)
#include<iostream>
#include<string>
#include<cmath>
#include<algorithm> //#include<map>
#include<vector>
using namespace std;
typedef long long ll;
//#include<fstream>
//ifstream fin("rps.in");
//ofstream fout("rps.out");
#define pb push_back
vector<int> v;
int main(){
	ios::sync_with_stdio(0);
	int n;
    while(cin>>n){
        v.pb(n);
    }
    sort(v.begin(),v.end(),[=](int a, int b){return(a>b);});
    cout<<v[0]<<endl<<v[1]<<endl<<v[2]<<endl;
return 0;
}

C++: s[];main(i){for(;~scanf("%d",s);)qsort(s,i++,4,"YXZQQQ\x8b\0+\x02\xc3");printf("%d\n%d\n%d\n",s[9],s[8],s[7]);}

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


int main()
{
	int i[10];
	cin >> i[1] >> i[2] >> i[3] >> i[4] >> i[5] >> i[6] >> i[7] >> i[8] >> i[9] >> i[10];
	sort(i, i+9);
	cout << i[9] << endl;
	cout << i[8] << endl;
	cout << i[7] << endl;

	return 0;
}

C++: #include<iostream>
#include<algorithm>
#include<functional>
using namespace std;
int data[10];

int main(){
for(int i=0;i<10;i++)cin>>data[i];
sort(data,data+10,greater<int>());

for(int i=0;i<3;i++)cout<<data[i]<<endl;

}

C++: #include <iostream>
using namespace std ;
int main()
{
int a[10] ;
while(cin>>a[0]>>a[1]>>a[2]>>a[3]>>a[4]>>a[5]>>a[6]>>a[7]>>a[8]>>a[9]){
    for(int i=0;i<10;i++)
    {
        for(int j=0;j<10-1;j++)
        {
            if(a[j+1]>a[j])
            {
                int temp=a[j];
                a[j]=a[j+1];
                a[j+1]=temp;
            }
        }
    }
        cout<<a[0]<<endl<<a[1]<<endl<<a[2]<<endl;  
  }
    
}

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

int main()
{
	int A[10];

	for (int i = 0; i < 10; i++) {
		cin >> A[i];
	}
	sort(A, A + 10);
	cout << A[9]<<endl;
	cout << A[8]<<endl;
	cout << A[7]<<endl;
    return 0;
}