Go: package main

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

func getsAsIntArray() (line []int) {
	scanner := bufio.NewScanner(os.Stdin)

	for scanner.Scan() {
		str := scanner.Text()
		if str == "" {
			break
		}
		data, err := strconv.Atoi(str)
		if err != nil {
			break
		}
		line = append(line, data)
	}

	return
}

func main() {

	lines := getsAsIntArray()
	sort.Sort(sort.Reverse(sort.IntSlice(lines)))
	for i, v := range lines {
		if i < 3 {
			fmt.Println(v)
		}
	}
}

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

list = sorted(array)
print(list[9])
print(list[8])
print(list[7])

Python: a=[]

for i in range (10):
    c=int(input())
    a.append(c)
    d=sorted(a)

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

Python: mountainList = []

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

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

Python: max = 0
middle = 0
small = 0
x = 0
for i in range(10):
	x = int(input())
	if max < x :
		middle = max
		max = x
		x = 0
	elif middle < x :
		small = middle
		middle = x
		x = 0
	elif small < x :
		small = x
		x = 0
print(max)
print(middle)
print(small)

Python: import sys

def qsort(seq):
    if seq == []:
        return seq
    return qsort([x for x in seq[1:] if x < seq[0]]) + seq[0:1] + qsort([x for x in seq[1:] if x >= seq[0]])

data_set = []

for i in range(0, 10):
    data_set.append(int(input()))

rank = qsort(data_set)

for i in range(0,3):
    print(rank.pop(-1))

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: import sys
heights = sorted([ int(h) for h in sys.stdin],reverce)
for h in heights:
    print(h)

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

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

spam.sort()
print(spam[-1])
print(spam[-2])
print(spam[-3])

Python: def solve():
    from sys import stdin
    f_i = stdin
    
    M = list(int(f_i.readline()) for m in range(10))
    M.sort(reverse=True)
    print(*M[:3], sep='\n')

solve()

Python: height = []
while True:
    try:
        line = raw_input("")
    except EOFError:
        break
    height.append(int(line))
sorted(height)[:3]

Python: N = input()
a = []
for i in range(N):
    a.append(input())
for i in range(3):
    m = max(a)
    a.remove(m)
    print (m)

Python: inputList = []
while True:
    try:
        num = int(input())
    except EOFError:
        break
    inputList.append(num)

inputList.sort()
length = len(inputList)
for i in range(3):
    print(inputList[length - i - 1])

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

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

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

a.reverse()
for i in range(3): 
    print(a[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))

    data = [int(v) for v in argv[1:]]
    for h in top_k_sort(data):
        print(h)

if __name__ == '__main__':
    main()

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

Python: import sys
a = []
s = sys.stdin.readline()
while s :
    a.append(int(s))
    s = sys.stdin.readline()
 
a.sort()
a.reverse()
for i in range(3) :
    print(a[i]);

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

Python: h=sorted([int(input()) for _ in range(10)])[::-1]
for i in h[0:3]:
    print(i)

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

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

Python: max = 0
middle = 0
small = 0
x = 0
for i in range(10):
	x = int(input())
	if max < x :
		middle = max
		max = x
		x = 0
	elif middle < x :
		small = middle
		middle = x
		x = 0
	elif small < x :
		small = x
		x = 0
print(max)
print(middle)
print(small)

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

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

sorted_data = sorted(input_data, reverse = True)

N_PRINT_DATA = 3

[print(sorted_data[i]) for i in range(N_PRINT_DATA)]

Python: mt = []

for i in range(10):
    mt.append(input())

print(str(mt.pop(mt.index(max(mt)))))
print(str(mt.pop(mt.index(max(mt)))))
print(str(mt.pop(mt.index(max(mt)))))

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

if __name__ == '__main__':
    main()

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: h = []
for i in range(10):
	h.append(int(input()))
h.sort(reverse=True)
for i in range(3):
	print(h[i])

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

Python: s=[int(input()) for _ in range(10)]
for i in range(3):
    n=max(s)
    print(n)
    s.remove(n)

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

mountains.sort()
mountains.reverse()

for n in [0,1,2]:
	print(mountains[n])

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

h.sort()
print(h[-1])
print(h[-2])
print(h[-3])

Python: n = list()

for var in range(0,10):
	n.append(int(input()))

n.sort(reverse=True)

for i in n[:3]:
	print(i)

Python: a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
f=int(input())
g=int(input())
h=int(input())
i=int(input())
j=int(input())

k=[a, b, c, d, e, f, g, h, i, j]

k.sort(reverse=True)
t=k[:3]

for i in t[0:]:
    print(i)

Python: mt = []
 
for i in range(10):
    mt.append(input())
 
print(mt.pop(mt.index(max(mt))))
print(mt.pop(mt.index(max(mt))))
print(mt.pop(mt.index(max(mt))))

Python: l = [input()]*10
for i in l.sort(reverse=True)[:3]:
    print(i)

Python: list1 = []
for i in range(1, 11):
    list1.append(input())


for x in range(1, 11):
    for y in range(0, 9):
        if int(list1[y]) < int(list1[y+1]):
            temp = list1[y]
            list1[y] = list1[y+1]
            list1[y+1] = temp

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

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

Python: height =[]
inp = ""
for i in range(0,10):
    inp = input()
    height.append(int(inp))
height.sort(reverse=True)
for i in range(0,3):
    print(str(height[i]))

Python: import string

list = [int(x) for x in input().split()]
list.sort(reverse=True)
for i in range(3):
    print(list[i])