Go: package main

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

var maxint = 10000
var scanner = bufio.NewScanner(os.Stdin)

func nextInt() (int, error) {
	scanner.Scan()
	return strconv.Atoi(scanner.Text())
}

func main() {
	scanner.Split(bufio.ScanWords)
	arr := make([]int, 10)
	for i := range arr {
		n, _ := nextInt()
		arr[i] = n
	}

	sort.Slice(arr, func(i, j int) bool {
		return arr[i] >= arr[j]
	})

	arrStr := fmt.Sprintf("%+v", arr[0:3])
	arrStr = arrStr[1:(len(arrStr) - 1)]
	arrStr = strings.Replace(arrStr, " ", "\n", -1)
	fmt.Println(arrStr)
}

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

Python: a=[None]*10
i=0
for i in range(10):
    a[i]=input()
a=list(map(int,a))


a.sort(reverse=True)

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

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

if __name__ == "__main__":
    main()

Python: Mountains=[]
for x in range(10):
	Mountains.append(int(input()))
for y in range(3):
	Top_idx=0
	for i in range (1,10-y):
		if Mountains[Top_idx] < Mountains[i]:
			Top_idx=i
	print(Mountains[Top_idx])
	Mountains.pop(Top_idx)

Python: a = input(">>")
a = a.split()
x = str(int(a[0])+int(a[1]))
print(len(x))

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

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

Python: mt = list()
n = 10

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

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

Python: order=[]
for number in range(10):
    hight=int(input())
    order.append(hight)
for j in range(9):
    for i in range(9):
        if order[i] < order[i+1]:
            a = order[i]
            b = order[i+1]
            order[i] = b
            order[i+1] = a
for i in range(3):
    print(order[i])

Python: a = 0
b = 0
c = 0

for i in range(10):
  x=int(input())
  if x>=a:
    c = b
    b = a
    a = x
  elif x>=b:
    c = b
    b = x
  elif x >=c:
    c = x

print(a)
print(b)
print(c)

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

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

a = []
for i in range(10):
    n = int(input())
    a.append(n)
    a.sort()
print(a[9], a[8], a[7], sep="\n")

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

#print(a)

#print("")
a.sort(reverse=True)

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

Python: #!/usr/bin/env python3

import collections
import sys

def read_prob():
    inputs = []
    try:
        while True:
            line = input().strip()
            inputs.append(int(line))
    except EOFError:
        pass
    return inputs

if __name__ == '__main__':
    inputs = read_prob()
    so = sorted(inputs)
    so.reverse()
    for i in range(3):
        print(so[i])

Python: inp = [int(input()) for i in range(10)]
m1, m2, m3 = 0, 0, 0
for h in inp:
    if(h > m1):
        m3 = m2
        m2 = m1
        m1 = h
    elif(h > m2):
        m3 = m2
        m2 = h
    elif(h > m3):
        m3 = h
print(m1)
print(m2)
print(m3)

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

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

Python: lis=[]

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

for i in range(10):
    for j in range(i+1,10):
        if lis[i]<lis[j]:
            a=lis[i]
            lis[i]=lis[j]
            lis[j]=a

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

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

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

Python: height =[]
inp = ""
while True:
    inp = input()
    if inp == "":break
    else: height.append(int(inp))

height.sort(reverse=True)
for j in range(0,3):
    print(str(height[j]))

Python: mountains = []
for i in range(0,10):
    input_line = input()
    mountains.append(int(input_line))

sorted_mountains = sorted(mountains, reverse=True)
for i in range(0, 3):
    print(sorted_mountains[i])

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

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

Python: list = []
for i in  range(10):
    a = input()
    list.append(a)
list = sorted(list)
for i in range(-1, -4, -1):
    print(list[i])

Python: #! /usr/bin/python3

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

Python: import sys
heights = []
for i in range(10):
    line = sys.stdin.readline()
    height = int(line)
    heights.append(height)
heights.sort()
heights.reverse()
for i in range(3):
    print (heights[i])

Python: def __main():

    mountains = []
    numOfMoun = 10
 
    for c in range(numOfMoun):
        mountains.insert(c,int(input('Height of the mountain ')))
        
    sorted_mounts = sorted(mountains,reverse=True)
    print(sorted_mounts[0])
    print(sorted_mounts[1])
    print(sorted_mounts[2])
    

__main()

Python: n = int(input())
l = [input() for i in range(n)]
for i in range(3):
    m = max(l)
    a.remove(m)
    print (m)

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)
y=0
for i in a:
  if y==3:
    break
  if i>=0 and i<=10000:
    print(i)
    y=y+1

Python: height = [int(input()) for _ in range(10)]
height = list(reversed(sorted(height)))

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

Python: mountains = []

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

mountains.sort(reverse=True)

for m in mountains[0:3]:
    print(m)

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

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

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

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