Go: // 九九を出すだけ
package main
import (
	"fmt"
	"os"
	"bufio"
	"strconv"
	"sort"
)

var sc = bufio.NewScanner(os.Stdin)
var out = bufio.NewWriter(os.Stdout)

func main(){
	sc.Split(bufio.ScanWords)
	defer out.Flush()
	mountains := make([]int, 10)
	for i:=0; i<10; i++{
		mountains[i]=nextInt()
	}
	sort.Sort(sort.Reverse(sort.IntSlice(mountains)))
	for _, v := range mountains[:3]{
		fmt.Fprintln(out, v)
	}
}

func next() string{
	sc.Scan()
	return sc.Text()
}

func nextInt() int{
	a, _ := strconv.Atoi(next())
	return a
}

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;
}

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

int main()
 {
   int a[100];
   for(int i=0;i<=9;i++)
    {
     cin>>a[i];
     }
    for(int j=0;j<=9;j++) {
     for(int k=0;k<=9;k++)
     {
         if(a[j]>a[k])
         {
             int t;
             t=a[j];
             a[j]=a[k];
             a[k]=t;
         }
     }
    }
     for(int g=0;g<=2;g++)
     {
         printf("%d\n",a[g]);
     }

 return 0;
 }

C++: #include<stdio.h>
int main(){
  int n,m[10000],i,sum;
  while(1){
    sum=0;
    scanf("%d",&n);
    if(n==0)break;
    for(i=0;i<n/4;i++){
      scanf("%d",&m[i]);
      sum+=m[i];
    }
    printf("%d\n",sum);
  }
  return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main()
{
    int height[10];
    for(int i=0;i<10;i++)
    {
        scanf("%d",&height[i]);
    }
    int temp;
    for(int i=0;i<10;i++){
            for(int j=i+1;j<=10;j++){
        if(height[i]<height[j]){
                temp=height[i];
            height[i]=height[j];
            height[j]=temp;
        }

            }

    }

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