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

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

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

Python: mmax1 = 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: #!/usr/bin/env python3
hight = []
for i in range(10):
    hight.append(int(input()))
hight = sorted(hight, reverse=True)

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

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

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

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

Python: if __name__=="__main__":
    dataset = []
    for i in range(10):
        a = int(input())
        dataset.append(a)
    for j in range(3):
        print(max(dataset))
        dataset.remove(max(dataset))

Python: N = int(input())

a = []
for i in range(N):
    a.append(input())

a.sort()

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

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

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

Python: #49 山の高さ

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

S.sort(reverse = True)

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

Python: mountains = []

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

mountains.sort()

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

Python: mnt=[]

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

print(f'{mnt[9]}\n{mnt[8]}\n{mnt[7]}')

Python: max1=0; max2=0; max3=0
for i in range(10):
    x=int(input())
    if max1<x:
        max3=max2
        max2=max1
        max1=x
    elif max2<x:
        max3=max2
        max2=x
    elif max3<x:
        max3=x
print(max1)
print(max2)
print(max3)

Python: import string
import sys

#??????????????\????????????ip?????\??????
ip = sys.stdin.readlines()
for i in range(len(ip)):
    ip[i] = int(ip[i].strip("\n"))

#??????3??????????????????
h = [0]*3

#?????????????????????
for i in range(len(ip)):
    for j in range(len(ip)):
        if ip[i] > ip[j]:
            tmp = ip[i]
            ip[i] = ip[j] 
            ip[j] = tmp            

for i in range(3):
    if h != 0:
        print(ip[i])

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

Python: N=10
A=[]
for i in range(N):
    A.append(int(input()))
sorted(A)
for i in range(3):
    print(a[i])

Python: # your code goes here
import sys

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

a.sort(reverse=True)
for i in a:
	
  if i>=0 and i<=10000:
    print(i)

Python: print("Hello,world!")

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()
print(first)
print(second)
print(third)

exit()

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

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

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

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

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

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

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

for n in range(3):
    s=max(a)
    b.append(s)
    print(s)
    a.remove(s)

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

Python: height = [ 1819,2003,876,2840,1723,1673,3776,2848,1592,922 ]

top = height[0]

for x in height :
    if top < x:
       top = x 

height.remove(top);

second = height[0]
for x in height :
    if second < x:
       second= x 

height.remove(second);

third = height[0]
for x in height :
    if third < x:
       third = x 

print(top)
print(second)
print(third)

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

a.sort()

for i in range(1, 4):
    print(a[-i])

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

x.sort(reverse=True)
#print(x)
print(x[0])
print(x[1])
print(x[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: # -*- coding:utf-8 -*-

def main():
    List=[]
    while(True):
        a=input()
        if a=="":
            break
        else:
            List.append(a)

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

Python: i = 0
x = []
for i in range(10):
    mount = int(input())
    x.append(mount)
sorted_x = sorted(x)
print(sorted_x[-1])
print(sorted_x[-2])
print(sorted_x[-3])

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

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

Python: import sys

heights = sorted([int(h) for h in sys.stdin], reverse=True)

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

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)

Python: n = 0
list = []
while n < 10:
    x = input()
    list.append(x)
    n += 1

sort.list()
print(list[7])
print(list[8])
print(list[9])

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

Python: if __name__ == "__main__":
    a = []
    for i in range(0,10):
        val = input()
        a.append(int(val))

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

    print(a)

Python: a=[]
for i in range(10) :
    a.append(input())
j=0
while j<10 :
    k=0
    while k<9 :
        if int(a[k])<int(a[k+1]) :
            tmp=a[k]
            a[k]=a[k+1]
            a[k+1]=tmp
        k=k+1
    j=j+1
print(a[0])
print(a[1])
print(a[2])

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: print(*sorted([int(input()) for i in range(10)])[:6:-1], sep='\n')

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