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])
	}
}

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])

Python: N = 10
mnts = []

for i in range(N):
    mnts.append(int(input()))

mnts.sort(reverse=True)

for mnt in mnts[:3]:
    print(mnt)

Python: from sys import stdin

x=[int(input()) for i in range(10)]

x.sort(reverse=True)

for i in x[:3]: print(i)

Python: #coding:utf-8

import sys

if __name__ == '__main__':

    nums = []

    for line in sys.stdin:
        if line == "\n":
            break
        else :
            nums.append(int(line))

    for n in sorted(nums, reverse=True)[:3]:
        print(n)

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

Python: l = []

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

l.sort()

for i in range(3):
    print(l[-1 * [i+1]])

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

Python: k=[]
try:
    while True:
        k.append(int(input()))
except EOFError:
    pass
k.sort()
print(k[-1])
print(k[-2])
print(k[-3])

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

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

Python: from sys import stdin
ns = [int(n) for n in stdin]
ns.sort(reverse = True)
for i in range(3):
  print(ns[i])

Python: x = sorted(map(int, input().split()), reverse=True)
for i in range(3):
    print(x[i])

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

Python: import sys
ms =list(map(int, sys.stdin.read().rstrip('\n').split('\n')))
ms.sort()
ms.reverse()
for i in range(3):
    print(ms[i])

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

print(*sorted(a, reverse=True)[:3],sep = '¥n')

Python: moutain = [0 for i in range(10)]
for i in range(10):
    moutain[i] = int(raw_input())
moutain.sort().reverse()
for i in range(3):
    moutain[i]

Python: list = list(map(int, input().split()))
list.sort(reverse=True)
for i in range(3):
    print(list[i])

Python: # coding: utf-8
# Here your code !

import sys

n = [int(input()) for i in range (1,11)] 
#t = [int(input()) for i in range(n)] 
n.sort()
n.reverse()

for j in range (1,4):
    print(n[j])

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

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

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

for i in range(10):
    for j in range(i,10):
        if (heights[j] > heights[i]):
            w = heights[i]
            heights[i] = heights[j]
            heights[j] = w

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