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: l = [a,b,c,d,e,f,g,h,i,j]
a,b,c,d,e,f,g,h,i,j = int(input())
l.sort()
print(l[-1])
print(l[-2])
print(l[-3])

Python: "\n".join(reversed(sorted([input() for i in range(10)]))[:3])

Python: import sys
l = []
for i in range(10):
    l.append(int(sys.stdin.readline().rstrip()))
for h in sorted(l,reverse=True)[:3]:
    print(h)

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

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

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

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

m_h.sort(reverse=True)

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

Python: mount_list = []

for i in range(1, 11):
  mount_list.append(input("Height of mountain" + str(i)))

mount_list.sort(reverse = True)

for sorted_mounts in mount_list:
  print(sorted_mounts)

Python: rank = [0] * 4
for _ in range(10):
    rank[0] = int(input())
    rank.sort()
for r in reversed(rank[1:]):
    print(r)

Python: import sys
a=[map(int,i.split())for i in sys.stdin]
print(*sorted(a,reverse=True)[:3],sep='\n')

Python: 
list = []
for x in range(10):
    n = int(input())
    list.append(n)
    list.sort()

size = len(list)
print(list[size-1])
print(list[size-2])
print(list[size-3])

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

def main():
    List=[]

    for i in range(10):
        a=int(input())
        List.append(a)

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

Python: heightOfMountains = []
for i in range(1, 11):
	heightOfMountains.append(int(input()))
	sorted(heightOfMountains)[-3:]

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

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

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

x.sort(reverse = True)
print(x[0])
print(x[1])
print(x[2])

Python: def main():
    import heapq
    h = [0]*10
    for i in range(10):
        h[i] = int(input()) * (-1)

    heapq.heapify(h)
    for _ in range(3):
        print(heapq.heappop(h) * (-1))
main()

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

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

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

def main():
	mountains = []
	for i in range(3):
		mountains.append(input())
	
	mountains = sorted(mountains, reverse = True)

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


if __name__ == '__main__':
    main()

Python: import sys

li = []
for line in sys.stdin:
   li.append(int(line))
   if len(li) == 10:
      break

li.sort(reverse=True)
li = li[0:3]
for i in li:
   print(i)

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

Python: first=0
second=0
third=0

for i in range(10):
    mountain=int(input())
    if mountain>first:
        third=second
        second=first
        first=mountain
    elif mountain>second:
        third=second
        second=mountain
    elif mountain>third:
        third=mountain

print(first)
print(second)
print(third)

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

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

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

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: mountain_high = []

for i in range(10):
    a = int(input())
    mountain_high.append(a)

mountain_high.sort(reverse = True)

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

Python: for i in sorted([int(input()) for _ in range(10)], reverse=True)[:3]:
    print(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)
print()

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

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

Python: import string

h = input().split()
for i in range(len(h)):
    for j in range(len(h)-1):
        if int(h[i]) > int(h[j]):
            tmp = h[i]
            h[i] = h[j] 
            h[j] = tmp
print(h[0])
print(h[1])
print(h[2])

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

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

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: mountain_heights = []
for i in range(10):
    mountain_heights.append(int(input()))

for i in range(3):
    maximum = 0
    index = i
    for j in range(i, 10):
        if mountain_heights[j] > maximum:
            maximum = mountain_heights[j]
            index = j
    temp = mountain_heights[i]
    mountain_heights[i] = mountain_heights[index]
    mountain_heights[index] = temp
    print(maximum)

Python: mountains = []

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

mountains.sort(reverse=True)

for height in mountains[:3]:
    print(height)

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

Python: hight = input().split("\n")
num = [int(n) for n in hight]
print(sorted(num)[-1])
print(sorted(num)[-2])
print(sorted(num)[-3])

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

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

Python: a=list(map(int,input().split()))
b=sorted(a, reverse=True)
print(b[0])
print(b[1])
print(b[2])

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

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

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

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