Go: package main

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

var rdr = bufio.NewReaderSize(os.Stdin, 1000000)

func readLine() string {
	buf := make([]byte, 0, 1000000)
	for {
		l, p, e := rdr.ReadLine()
		if e != nil {
			panic(e)
		}
		buf = append(buf, l...)
		if !p {
			break
		}
	}
	return string(buf)
}

func toInt(str string) int {
	n, _ := strconv.Atoi(str)
	return n
}

func main() {
	lst := make([]int, 0)
	for i := 0; i < 10; i++ {
		lst = append(lst, toInt(readLine()))
	}
	sort.Ints(lst)
	for i := 9; i > 6; i-- {
		fmt.Println(lst[i])
	}
}

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

using namespace std;

int m[10];

int main() {

    for (int i = 0; i < 10; i++) {
        cin >> m[i];
    }

    sort(m, m + 10);

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

    return 0;
}

C++: // List_of _Top_3_Hills.cpp : ??????????????? ??¢????????±????????§????????¨????????? ?????????????????????????????????
//

#include <stdio.h>

#define sort 10

int main()
{
	int bab[sort], temp;
	for (int n = 0; n < sort; n++)
	{
		scanf("%d", &bab[sort]);
	}
	for (int i = 0; i < sort - 1; i++)
	{
		for (int j = sort -1; j > i; j--)
		{
			if (bab[j - 1] < bab[j])
			{
				temp = bab[j];
				bab[j] = bab[j - 1];
				bab[j - 1] = temp;
			}
		}
	}
	for (int m = 0; m < 3; m++)
	{
		printf("%d\n", bab[m]);
	}
	return 0;
}

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

#define pb(n) push_back(n)
#define fi first
#define se second
#define np string::npos
#define X real()
#define Y imag()
#define value(x,y,w,h) (x >= 0 && x < w && y >= 0 && y < h)
#define all(r) (r).begin(),(r).end()
#define gsort(st,en) sort((st),(en),greater<int>())
#define vmax(ary) *max_element(all(ary))
#define vmin(ary) *min_element(all(ary))
#define debug(x) cout<<#x<<": "<<x<<endl
#define fcout(n) cout<<fixed<<setprecision((n))
#define scout(n) cout<<setw(n)

#define rep(i,n) for(int i = 0; i < (int)(n);++i)
#define repc(i,a,b) for(int i = (a);i < (int)(b);++i)
#define repi(it,array) for(auto it = array.begin(),end = array.end(); it != end;++it)
#define repa(n,array) for(auto &n :(array))

typedef long long ll ;
typedef deque<int> di ;
typedef deque<ll> dl ;
typedef map<string,int> dict;
typedef complex<double> comd;
typedef pair<int,int> pii;

constexpr int imax = ((1<<30)-1)*2+1 ;
constexpr int inf = 100000000;
constexpr double PI = acos(-1.0) ;
double eps = 1e-10 ;
const int dy[] = {-1,0,1,0};
const int dx[] = {0,-1,0,1};

double CalcDist(comd p1, comd p2){
  return sqrt(pow(p1.X - p2.X,2.0) + pow(p1.Y -p2.Y,2.0));
}

template <typename T>
void out(deque < T > d)
{
  for(size_t i = 0; i < d.size(); i++)
  {
    debug(d[i]);
  }
}

template<typename T>
T ston(string& str, T n){
  istringstream sin(str) ;
  T num ;
  sin >> num ;
  return num ;
}
int v[10000];
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int i = 0;
  while(cin>>v[i]) ++i;
  gsort(v,v+10000);
  cout << v[0] << "\n"<<v[1]<<"\n"<<v[2]<<"\n";
  return 0;
}

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++: #include<iostream>
#include<string>
#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[10]<<endl<<a[9]<<endl<<a[8]<<endl;
  return 0;
}

C++: #include<stdio.h>

main()
{
long long int tall[10];
int c,i,temp;
 
for(i=0;i<10;i++){
scanf("%d",(tall+i));
}

for(i=0;i<10;i++){
for(c=i+1;c<10;c++){
if(tall[i]<tall[c]){
temp=tall[c];
tall[c]=tall[i];
tall[i]=temp;
}
}
    
}
  
for(i=0;i<3;i++){
printf("%d\n",tall[i]);
}
return 0;
}

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

using namespace std;

int main(void){
  int Mou[10];
  int i;
  int n = 0;

  for(i = 0; i < 10; i++){
    cin >> Mou[i];
    n++;
  }

  sort(Mou , Mou + n);

    cout << Mou[n-1] << endl;
    cout << Mou[n-2] << endl;
    cout << Mou[n-3] << endl;
  
    return 0;
}

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

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

int main(){
int a[10];
int b;
int c;
int d;
int e;
c=0;
d=0;
e=0;
b=0;
while(b<10){
cin >> a[b];
if(c<a[b]){e=d;
           d=c;
           c=a[b];}
else if(d<a[b]){e=d;
                d=a[b];}
else if(e<a[b]){e=a[b];}
b=b+1;
}          
cout << c;
cout << d;
cout << e;
    return 0;
}

C++: int main()
{
	int i,j;
	int rank1 = 0;
	int mountain[10] = {0};
	for (i = 0; i < 10; i++) {
		scanf_s("%d", &mountain[i]);
	}



	for (i = 0; i < 10; i++) {
		for (j = i + 1; j < 10; j++) {

			if (mountain[j] > mountain[i])
			{
				rank1 = mountain[i];
				mountain[i] = mountain[j];
				mountain[j] = rank1;
			}
		}
	}

	for (i = 0; i < 3; i++) {
		printf("%d\n", mountain[i]);

		}
	
	


    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);
	reverse(a, a+10);
	cout << a[0] << endl << a[1] << endl << a[2] << endl;
}

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

int main() {

  int input;
  vector<int> yama;

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

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

  cout << yama[0] << endl << yama[1] << endl << yama[2] << endl;

  return 0;

}

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

int main()
{
    int h[10];
    for (int i=0; i<10; i++) cin>>h[i];
    sort(h,h+10);
    cout<<h[9]<<'\n'<<h[8]<<'\n'<<h[7]<<'\n';
    return 0;
}

C++: #include<stdio.h>

int main(){
	int i;
	int c=0,a[3]={0,0,0};
	for(i=0;i<10;i++){
		scanf("%d",&c);
		if(c>a[0]){
			a[2]=a[1];
			a[1]=a[0];
			a[0]=c;
		}else if(c>a[1]){
			a[2]=a[1];
			a[1]=c;
		}else if(c>a[2]){
			a[2]=c;
		}
	}

	for(i=0;i<3;i++)printf("%d\n",a[i]);
	return 0;
}

C++: #include<cstdio>
#include<string>
#include<iostream>
#include<algorithm>
#define _USE_MATH_DEFINES
#include<math.h>
#include<queue>
#include<set>
#include<vector>
#define INF 100000000

#define MAX_N 100

typedef long long int ll;
using namespace std;


int main(){

	int mountain[10];

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

	for(int i = 0; i < 10; i++){
		for(int j = i+1; j < 10; j++){
			if(mountain[i] < mountain[j]){
				int kari = mountain[i];
				mountain[i] = mountain[j];
				mountain[j] = kari;
			}
		}
	}

	for(int i = 0; i < 3; i++){
		printf("%d\n", mountain[i]);
	}

	return 0;

}

C++: #include<iostream>
using namespace std;
int main()
{
    int m1,m2,m3;
    m1=m2=m3=0;
    for(int i=0;i<10;i++)
    {
        int h;
        cin>>h;
        if(h>m1)m3=m2,m2=m1,m1=h;
        else if(h>m2)m3=m2,m2=h;
        else if(h>m3)m3=h;
        else;
    }
    cout<<m1<<endl<<m2<<endl<<m3<<endl;
    return 0;
}

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

int main(){
	int h[10];

	for (int i = 0; i < 10; i++){
		cin >> h[i];
	}
	for (int i = 0; i < 9; i++){
		for(int j = i + 1; j < 10; j++){
			if(h[i] < h[j]){
				int temp = h[i];
				h[i] = h[j];
				h[j] = temp;
			}	
		}
	}
	for(int i = 0; i < 3; i++){
		cout << h[i] << 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;
	}