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: # -*- coding:utf-8 -*-

import sys

data = []
count = 0
for i in sys.stdin:
    data.append(int(i))
    count = count+1
    if count == 10:
        break

N = len(data)
m = 100

for i in range(m):
    for n in range(N-1):
        a = data[n]
        b = data[n+1]
        if a <= b:
            data[n] = b
            data[n+1] = a
        else:
            pass
for i in range(3):
    print(data[i])

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

Python: def main():
    mountain=[]
    for i in range(10):
        num=int(input())
        mountain.append(num)
    mountain=sorted(mountain)
    mountain=mountain[::-1]
    for i in range(3):
        print(mountain[i])

if __name__=='__main__':
    main()

Python: list = [int(input()) for i in range(10)]
s=0
t=0
u=0
for i in range(10):
    if s<list[i]:
        u=t
        t=s
        s=list[i]
    elif t<list[i]:
        u=t
        t=list[i]
    elif u<list[i]:
        u=list[i]
print(s)
print(t)
print(u)

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

Python: import sys

def solve():
    a = [int(input()) for i in range(10)]
    a.sort(reverse=True)
    print(*a[:3], sep='\n')
    
if __name__ == '__main__':
    solve()

Python: mountains = sorted([int(input()) for i in range(10)])
for i in range(3):
    print(mountains[9 - i])

Python: tate =int(input())
yoko=int(input())
arr = [i+1 for i in range(tate)]
for j in range(yoko):
    rep1,rep2=input().split(",")
    rep1=int(rep1)-1
    rep2=int(rep2)-1
    arr[rep1],arr[rep2] = arr[rep2],arr[rep1]

for k in range(tate):
    print(arr[k])

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

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

Python: a=[input() for i in range(10)]
a.sort(reverse=True)
print(*a[:3],sep='\n')

Python: l = []
while True:
    try:
        x = int(input())
        l.append(x)
    except Exception:
        break
l.sort(reverse=True)
print("\n".join([str(l[0]),str(l[1]),str(l[2])]))

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

Python: # AOJ 0001 List of Top 3 Hills
# Python3 2018.6.7 bal4u

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

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

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

Python: mountains = []
for x in range(10):
    mountains.append(int(raw_input()))
mountains.sort()
print(mountains[-1])
print(mountains[-2])
print(mountains[-3])

Python: l = []

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

l.sort(reverse=True)

for ll in l[:3]:
    print(ll)

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

Python: a = int(input() )
b = int(input() )
c = int(input() )
if b > a:
  tmp = a
  a = b
  b = tmp
if c > b:
  tmp = c
  c = b
  b = tmp
if b > a:
  tmp = b
  b = a
  a = tmp
for x in range(7):
  d = int(input() )
  if d > a:
    c = b
    b = a
    a = d
  elif d > b:
    c = b
    b = d
  elif d > c:
    c = d
print(a)
print(b)
print(c)

Python: # your code goes here
import sys

a=[]
for line in sys.stdin:
  tmp=line.split(" ")
  a.append(tmp[-1])

a.sort(reverse=True)
for i in a:
	print(i)

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

Python: from sys import stdin
map(print,[int(n) for n in stdin].sort(reverse=True)[0:3])

Python: l = []
for i in range(10):
    a = int(input())
    l.append(a)
L = sorted(l)
print(L[len(L) - 1])
print(L[len(L) - 2])
print(L[len(L) - 3])

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

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

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.reverse()

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

Python: 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 = []
for _ in range(10):
    array.append(int(input('input integer')))

sorted_array = quicksort(array)
for i in range(3):
    print(sorted_array[9-i])

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

import sys

def top_k_sort(data, k=3, reverse=True):
    data.sort(reverse=True)
    return data[:k]

def main():
    data = []
    for line in sys.stdin:
        data.append(int(line))

    for h in top_k_sort(data):
        print(h)

if __name__ == '__main__':
    main()

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

Python: def inp():
    try:
        while True:
            data=raw_input()
            if not data: break
            yield data
    except KeyboardInterrupt:
        return
sorted(list(inp()),reverse=True)[:3]

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

Python: a = []
for i in range(10):
   n = int(input())
   a.append(n)
a = [1,3,5,6,8,11,12,14,15,17]
a.sort(reverse=True)

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

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

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

h.sort()
h.reverse()

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

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


a=sorted(a, reverse=True)

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

Python: import sys

in_=sys.argv[1]
with open(in_,"r") as f:
    lis=[]
    for line in f:
        line=line.strip()
        lis.append(line)
        
for i in sorted(lis,reverse=True):
    print(i)
    if i==2:
        break

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

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

height.sort()

for i in range(3):
     print(height[-1-i])

Python: def main():

    mountains_list = [int(input()) for n in range(10)]
    for i in range(3):
        print(list(reversed(sorted(mountains_list)))[i])
    
main()

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

Python: num = 3
mountains = list(map(int, input()))
mountains = sorted(mountains, reverse=True)
for i in range(num):
    print(mountains[i])

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

Python: height=[]
for i in xrange(10):
    mountain=input()
    height.append(mountain)
height.sort()
for i in xrange(3):
    print(height[i])

Python: def ListOfTop3Hill(l):
    l.sort()
    l.reverse()
    for i in range(3):
        print(l[i])


def main():
    # input
    N = 10
    l = [int(input()) for i in range(N)]
    # solver
    ListOfTop3Hill(l)

if __name__ == '__main__': main()