Go: package main

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

var (
	n  = 10
	sc = bufio.NewScanner(os.Stdin)
)

func main() {
	heights := make([]int, n, n)
	for i := 0; i < n; i++ {
		sc.Scan()
		heights[i], _ = strconv.Atoi(sc.Text())
	}
	sort.Sort(sort.Reverse(sort.IntSlice(heights)))

	for i := 0; i < 3; i++ {
		fmt.Println(heights[i])
	}
}

Python: lst = []
for i in range(10):
 lst.append(int(input()))
lst.sort()
lst.reverse()
for i in range(3):
 print(lst[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], end="")

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

Python: import sys
h=[int(i) for i in sys.stdin]
h.sort()
print(h[-1])
print(h[-2])
print(h[-3])

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

Python: h=[]
for i in range(10):
    h.append(int(input()))
h.sort()
print(h[9],h[8],h[7],sep='\n')

Python: array = []
for i in range(10):
 line = int(input())
 array += [line]

result = array.sort()[::-1]

print(result[0])
print(result[1])
print(result[2])

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

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

Python: import sys

hoge = [int(x) for x in input().split()]
hoge.sort(reverse=True)
for i in range(3):
    print(hoge[i])

Python: m=[int(input()) for _ in range(10)]
m.sort(reverse=True)
print(m[0])
print(m[1])
print(m[2])

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

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

top3 = []
for i in range(3):
    Max = max(values)
    top3.append(Max)
    values.remove(Max)

for x in top3:
    print(x)

Python: import sys

l = [int(i) for i in sys.stdin]
l.sort(reverse=True)
for i in range(0, 3):
    print(l[i])

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

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

for i in range(0,10):
    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)

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

Python: # coding: utf-8
mountain = [int(input()) for i in range(10)]
for i in range(3):
    print(max(mountain))
    mountain.remove(max(mountain))

Python: hight = []

for i in range(10):
    hight.append(int(input()))

hight.sort(reverse=True)
print(hight[0])
print(hight[1])
print(hight[2])

Python: import sys
heights = sorted([ int(h) for h in sys.stdin],reverce)
for h in heights:
    print(h)

Python: heights = []

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

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

print()

data.sort()
data.reverse()

for i in range(0,3):
    print(data[i])

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

Python: #!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys

def qsort( a ):
	if not isinstance(a,list):
		raise TypeError('qsort can only sort \'list\'')
	if len(a) <= 1:
		return a
	p = a[0]
	for i in range(1,len(a)):
		if a[0] != a[i]:
			if a[0] < a[i]:
				p = a[i]
			break
		elif i == len(a)-1:
			#all are same
			return a
	
	while True:
		i = 0
		j = len(a)
		for i in range( 0, len(a) ):
			if p <= a[i]:
				break
		for j in range( len(a)-1, -1, -1 ):
			if a[j] < p:
				break
		if i >= j:
			a1 = qsort( a[:i] )
			if i < len(a):
				a2 = qsort( a[i:] )
				a1.extend(a2)
			return a1
		else:
			tmp  = a[i]
			a[i] = a[j]
			a[j] = tmp

if __name__ == '__main__':
	m_list = []
	for i in range(0,10):
		m_list.append( int( sys.stdin.readline() ) )
	s = qsort(m_list)
	s.reverse()
	for i in range(0,3):
		print('{}'.format(s[i]))

Python: # coding: utf-8
# Your code here!

lul = []
for i in range(10):
    line = input()
    n = int(line)
    lul.append(n)

lul.sort()
print(str(lul[9]))
print(str(lul[8]))
print(str(lul[7]))

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

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

Python: from sys import stdin

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

Python: li = sorted([int(input()) for i in range(10)], reverse=True)
print("\n".join(map(str, li[:3])))

Python: height = [int(input()) for _ in range(10)]
for x in sorted(height, reverse = True)[:3]:
    print(x)

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

Python: hight = []

for i in range(10):
    hight.append(int(input()))

hight.sort()
print(hight[0])
print(hight[1])
print(hight[2])

Python: import sys
#from me.io import dup_file_stdin

#@dup_file_stdin
def solve():
    m=[]
    for line in sys.stdin:
        m.append(int(line))
    m.sort(reverse=True)
    for h in m[0:3]:
        print(h)
solve()

Python: if __name__ == '__main__':
    # ??????????????\???
    mountains = [int(input()) for _ in range(10)]

    # ???????????????
    mountains.sort(reverse=True)

    # ???????????????
    print('{0}\n{1}\n{2}'.format(mountains[0], mountains[1], mountains[2]))

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

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

def main():
    List=[]

    for i in range(10):
        a=input()
        List.append(a)

    List.sort(reverse=True)
    print(List[0])
    print(List[1])
    print(List[2])
        
 
if __name__ == '__main__':
    main()

Python: from sys import stdin

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

Python: i = 1
x = []
while i <= 10:
    n = int(input())
    x.append(n)
    i += 1
    
a = sorted(x, reverse=True)
print(a[0])
print(a[1])
print(a[2])

Python: a=[]

for i in range(10):
	a.append(int(input()))
a.sort()
for i in range(3):
	print(a[9-i])

Python: # coding: utf-8
# Your code here!

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

Python: max1 = 0
middle = 0
small = 0
x = 0
for i in range(10):
	x = int(input())
	if max1 < x :
		middle = max1
		max1 = x
		x = 0
	elif middle < x :
		small = middle
		middle = x
		x = 0
	elif small < x :
		small = x
		x = 0
	x = 0
print(max1)
print(middle)
print(small)

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

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

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

max1 = max(h)
h.remove(max1)
max2 = max(h)
h.remove(max2)
max3 = max(h)

print(max1)
print(max2)
print(max3)

Python: 
mt = []

for i in range(10):
    mt.append(input())

print(mt.pop(mt.index(max(mt))))
print(mt.pop(mt.index(max(mt))))
print(mt.pop(mt.index(max(mt))))

Python: arr = []
for i in range(10):
	arr=arr+[int(raw_input())]
arr.sort()
arr.reverse()
for i in range(3):
	print(arr[i])

Python: a=[]
for i in range(10):
    a.append(int(input()))
for i in range(3):
    c = 0
    for sample in a:
        if c < sample:
            c = sample
    print(c)
    a.remove(c)

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

l = sorted(l, reverse=True)
for i in range(3):
    print(l[i])