Go: package main

import (
	"fmt"
	"sort"
)

func main() {
	mt := make([]int, 10)

	for i := 0; i < 10; i++ {
		fmt.Scan(&mt[i])
	}

	sort.Ints(mt)
	fmt.Printf("%d\n%d\n%d\n", mt[9], mt[8], mt[7])

}

Python: # -*- coding:utf-8 -*-

first = 0
second = 0
third = 0
i = 0

for i in range(0,9):
    line = int(input())
    
    if first < int(line):
        third = second
        second = first
        first = int(line)
    elif second < int(line):
        third = second
        second = int(line)
    elif third < int(line):
        third = int(line)

print(first)
print(second)
print(third)
print()

Python: mountain = sorted([int(input()) for _ in range(10)], reverse=True)
ans = mountain[:3]
print('\n'.join(map(str, ans)))

Python: a = [int(input()) for i in range(0,10)]
a.sort(reverse=True)
for i in range(0,3):
    print(a[i])

Python: import string

h = input().split()
for i in range(len(h)):
    for j in range(len(h)-1):
        if int(h[i]) > int(h[j]):
            tmp = h[i]
            h[i] = h[j] 
            h[j] = tmp
print(h[0])
print(h[1])
print(h[2])

Python: import numpy as np
from numpy.random import *

def quicksort(array):
    if len(array) < 2:
        return array # ?????¬??±??????
    else:
        pivot = array[0] # ?????°??±??????
        # ???????????????????°???????????????????????????¨?????????
        less = [i for i in array[1:] if i <= pivot]

        # ????????????????????§??????????????????????????¨?????????
        greater = [i for i in array[1:] if i > pivot]

        return quicksort(less) + [pivot] + quicksort(greater)


array = randint(0, 1000, 10) 
sorted_array = quicksort(array)
print(sorted_array[0:3])

Python: a=[]
for i in range(10):
    a.append(int(input()))
a.sort()
for j in range(-1, -4, -1):
    print(a[j])

Python: a = []
for i in range(10):
    a.append(int(input()))
b = sorted(a,reverse=True)
print(b[0])
print(b[1])
print(b[2])

Python: mountain_heights = []
for i in range(10):
    mountain_heights.append(int(input()))

for i in range(3):
    maximum = 0
    index = i
    for j in range(i, 10):
        if mountain_heights[j] > maximum:
            maximum = mountain_heights[j]
            index = j
    temp = mountain_heights[i]
    mountain_heights[i] = mountain_heights[index]
    mountain_heights[index] = temp
    print(maximum)

Python: mountains = []

for _ in range(10):
    mountains.append(int(input()))

mountains.sort(reverse=True)

for height in mountains[:3]:
    print(height)

Python: takasa = []
for a in range (10):
  takasa.append(int(input()))
for b in range(3):
  print(max(takasa))
  takasa.remove(max(takasa))

Python: hight = input().split("\n")
num = [int(n) for n in hight]
print(sorted(num)[-1])
print(sorted(num)[-2])
print(sorted(num)[-3])

Python: lst=[]
for i in range(10):
    lst.append(int(input()))
lst.sort(reverse=True)
for i in range(3):
    print(lst[i])

Python: a=[]
for i in range(10):
    a.append(int(input()))
a.sort()
print(a[9])
print(a[8])
print(a[7])

Python: a=list(map(int,input().split()))
b=sorted(a, reverse=True)
print(b[0])
print(b[1])
print(b[2])

Python: s=[int(input()) for x in range(10)]
print(sorted(s)[-1])
print(sorted(s)[-2])
print(sorted(s)[-3])

Python: a=[]
for i in range(10):
    a.append(int(input()))
a.sort()
print(a[9])
print(a[8])
print(a[7])

Python: h = []
for _ in range(10):
	h.append(int(input()))

h.sort(reverse=True)
for i in range(3):
	print(h[i])

Python: import sys
import operator
# l = sys.stdin.readline()
l= []
for i in xrange(10):
    l.append(int(sys.stdin.readline()))

first = max(l)
print(first)
del l[l.index(first)]
first = max(l)
print(first)
del l[l.index(first)]
first = max(l)
print(first)
del l[l.index(first)]

Python: a = [int(input()) for i in range(3)]

a.reverse()
for i in range(3):
    print(a[i])

Python: a = []
for i in range(10):
    n = int(input())
    a.append(n)
    a.sort(reverse=True)
print(a[0])
print(a[1])
print(a[2])

Python: from collections import deque
lis = []
for i in range(10):
    height = int(input())
    lis.append(height)

lis.sort()
d = deque(lis)

for j in range(3):
    print(d.pop())

Python: data = []
for i in range(10):
    data.append(int(input()))
    
sdata = sorted(data)
for i in range(3):
    print(sdata[9-i])

Python: a = [int(input()) for i in range(0,10)]
a.sort(reverse=True)
for i in range(0,3):
	print(a[i])

Python: mt = list()
n = 10

for i in range(n):
    mt.append(int(input()))
mt.sort(reverse=True)
for j in range(3):
    print(mt[j])

Python: x = []
for i in range(10):
    x.append(int(input()))
x.sort()
for i in reversed(range(7,10)):
    print(x[i])

Python: import sys                                       
import functools                                 
import itertools                                 
import math                                      
                                                 
x = sorted(list(map(int, sys.stdin.readlines())))
                                                 
[print(n) for n in x[:-4:-1]]

Python: import sys

a = []
for line in sys.stdin:
    a.append(int(line))
a.sort()
a.reverse()
print(a[0])
print(a[1])
print(a[2])

Python: h = sorted([int(input()) for i in range(10)], reverse=True)
for i in range(3): print(h[i])

Python: first = 0;
second = 0;
third = 0;
for var in range(0,10):
	N = int(input())
	if (N>first):
		third = second
		second = first
		first = N
	elif (N>second):
		third = second
		second = N
	elif (N>third):
		third = N
print (first)
print (second)
print (third)

Python: data = [int(input()) for i in range(10)]
data.sort()
for j in range(9, 6, -1):
    print(data[j])

Python: import sys
[print(d) for i, d in enumerate(sorted([i for i in sys.stdin], reverse=True)) if i < 3]

Python: "\n".join(sorted([input() for i in range(10)])[:-3:-1])

Python: values = []
for n in range(10):
    values.append(int(input()))

values.sort(reverse=True)
for v in values[:3]:
    print(v)

Python: def main():
    m = []
    for _ in range(10):
        m.append(int(input()))

    m.sort(reverse = True)

    for i in range(3):
        print(m[i])

if __name__ == "__main__":
    main()

Python: print(*sorted([int(input()) for _ in range(10)])[:-4:-1], sep="\n")

Python: import sys

a = []
for i in sys.stdin:
    a.append(int(i.replace("\n", "")))
a.sort(reverse=True)
del a[3:]
print( "\n".join(map(str, a)))

Python: lst = [0] * 10
for i in range(10):
    lst[i] = int(input())
lst.sort(reverse=True)
for i in range(3):
    print(lst[i])

Python: a = [int(input()) for i in range(10)]

a.sort(reverse=True)

for i in range(3):
    print(a[i])

Python: heightOfMountains = []
for i in range(1, 11):
	heightOfMountains.append(int(input()))
heightOfMountains.sort()
for i in range(1, 4):
	print(heightOfMountains[-j])

Python: ans=[]
for i in range (0,10):
    ans.append(int(input()))
ans.sort(reverse=True)
for i in range (0,3):
    print(ans[i])

Python: def main():
    a=[]
    for i in range(10):
        a.append(int(input()))
    a.sort()
    for j in range(-1, -4, -1):
        print(a[j])

Python: a=[]

for i in range(0,10):
    a.append(input())
inp = list(map(int,a))

INP=[0,0,0,0,0,0,0,0,0,0]

for i in range(0,10):
    for j in range(i+1,10):
        if inp[i]<inp[j]:
            INP[j]+=1
        elif inp[i]>inp[j]:
            INP[i]+=1
        else:
            INP[i]+=1
            INP[j]+=1

z = 0

for i in range(9,-1,-1):
    if z >= 3:
        break
    for j in range(0,10):
        if i == INP[j]:
            print(inp[j])
            z+=1
        if z >= 3:
            break

Python: [print(x) for x in sorted([int(input()) for i in range(10)])[-1:-4:-1]]

Python: mountains = []
count = 0
while True:
    height = int(input())
    if height >= 0 and height <= 10000:
        mountains.append(height)
    count += 1
    if count == 10:
        break

mountains.sort()

for i in mountains[:6:-1]:
    print(i)

Python: height=[]
for i in range(10):
	height.append(int(input()))
height.sort()
height.reverse()
for i in range(3):
	print(height[i])