Go: package main

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

func main() {
        fp := os.Stdin
        scanner := bufio.NewScanner(fp)
        var lst [3]int

        for scanner.Scan() {
                num, _ := strconv.Atoi(scanner.Text())
                if lst[0] < num {
                        lst[2] = lst[1]
                        lst[1] = lst[0]
                        lst[0] = num
                } else if lst[1] < num {
                        lst[2] = lst[1]
                        lst[1] = num
                } else if lst[2] < num {
                        lst[2] = num
                }
        }

        for _, i := range lst {
                fmt.Printf("%d\n", 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()

Python: m=[input() for i in range(10)]
m.sort()
m.reverse()
print("{0}\n{1}\n{2}".format(m[0],m[1],m[2]))

Python: m = []
for _ in range(10):
    r = int(input())
    m.append(r)

m.sort()

print (m[9]);
print (m[8]);
print (m[7]);

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

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

Python: print("\n".join(map(str,sorted(int(input()) for x in range(10))[:-4:-1])))

Python: N = 10
mnts = []

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

mnts.sort(reverse=True)
print(mnts)

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

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

Python: s=[int(input(x)) for x in range(10)]
print(sorted(s)[-1])
print(sorted(s)[-2])
print(sorted(s)[-3])

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

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

Python: top=0
sec=0
thi=0

for num in range(10):
	input_num=input()
	x=int(input_num)
	if x>top:
		thi=sec
		sec=top
		top=x
	elif x<=top and x>sec:
		thi=sec
		sec=x
	elif x<=sec and x>thi:
		thi=x

print(top)
print(sec)
print(thi)

Python: mh=[]

for i in range(1,11):
    mh.append(int(input()))

mh.sort(reverse=True)
print(mh[0:3])

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

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

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

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

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: data = []
for i in range(10):
    data.append(int(input()))
data = sorted(data)
print(data[-1])
print(data[-2])
print(data[-3])

Python: def main():
    N=10
    l = list()
    for i in range(N):
        l.append(int(input()))
    l.sort(reverse=True)
    for x in l[:3]:
        print(x)

if __name__=='__main__':
    main()

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

Python: n=[]
for var in range(0, 10):
    n.append(int(raw_input()))
sorted(n,reverse=True)[:3]

Python: 
mountain = []

for _ in range(10):
	mountain.append(int(input()))
	
mountain.sort()
mountain.reverse()

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

Python: hills = [int(input()) for i in range(10)]
hills.sort()

print(hills[-1])
print(hills[-2])
print(hills[-3])

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

Python: a1=int(input())
a2=int(input())
a3=int(input())
a4=int(input())
a5=int(input())
a6=int(input())
a7=int(input())
a8=int(input())
a9=int(input())
a10=int(input())
s=[]
s=[a1,a2,a3,a4,a5,a6,a7,a8,a9,a10]
s.sort()
print(s[9])
print(s[8])
print(s[7])

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

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

mol.sort(key=None,reverse=True)
for i in range(3):
    print(mol[i])

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

Python: array = [0 for i in range(10)]
for i in range(10):
    array[i] = int(input())
array.sort()

for i in range(9,6,-1):
    print(array[i])

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

Python: 
mountain = []

for _ in range(10):
	mountain.append(int(input()))
	
mountain.sort()
mountain.reverse()

print(mountain[0], mountain[1], mountain[2])

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

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

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

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

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

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

Python: a_list = []
for i in range(10):
    while True:
        a = input()
        a = int(a)
        if 0<=a and a<=10000:break
    a_list.append(a)

for i in range(3):
    print(max(a_list))
    a_list.remove(max(a_list))

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

Python: h = [int(input()) for x in range(10)]
h_s = sorted(h, reverse = True)

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

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

input_arr.sort(reverse=True)

for i in range(3):
    print(input_arr[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):
    s = input()
    s = int(s)
    li.append(s)

li.sort()
li.reverse()

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

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

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

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

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

Python: if __name__ == '__main__':
    hight = int(input()).split()
    print(sorted(num, reverse=True)[i] for i in range(0, 3))

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

Python: mountain = []

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

mountain.sort(reverse = True)

for j in range(3):
	print(mountain[j])