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.Ints(mountains)
	for _, v := range mountains[7:]{
		fmt.Fprintln(out, v)
	}
}

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

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

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

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

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

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

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

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

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

Python: mountains = []
[mountains.append(int(input())) for i in range(10)]
mountains = sorted(mountains)[::-1]
for j in range(3):
    print(mountains[j])

Python: import fileinput

mountains = []
for cnt in range(10):
#    for line in fileinput.input():
    a = input()
    mountains.append(int(a))
mountains.sort()
print(mountains[9])
print(mountains[8])
print(mountains[7])

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

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

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

Python: 
mountains = []

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

mountains.sort(reverse = True)

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

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)

exit()

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

    for i in range(3):
        print(h[9-i])
        
ListofTopHills()

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

y=sorted(x)
print(y[9])
print(y[8])
print(y[7])

Python: h_list = []
for i in range(0,10):
    h_input = int(input())

    if (0 <= h_input <= 10000):
        h_list.append(h_input)


h_list = sorted(h_list, reverse=True)

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

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

# Volume0 - 0001 (http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0001)

li = []
for x in range(10):
    y = input()
    li.append(y)

li.sort()
li.reverse()

for y in range(3):
    print(li[y])

Python: try:
    meters = []
    while True:
        meters.append(int(input().strip()))
except EOFError:
    meters.sort(reverse=True)
    for i in range(3):
        print(meters[i])

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

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

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

# Volume0 - 0001 (http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0001)

li = []
for x in range(3):
    s = input()
    s = int(s)
    li.append(s)

li.sort()
li.reverse()

for y in range(3):
    print(li[y])

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

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(1, 1000, 10) 
sorted_array = quicksort(array)
print(sorted_array[2])
print(sorted_array[1])
print(sorted_array[0])

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

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

Python: main = (lambda a: [print(i) for i in a[:3]])(sorted([int(input()) for i in range(10)])[::-1])

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