Problem:
List of Top 3 Hills There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. Write a program which prints heights of the top three mountains in descending order. Input Height of mountain 1
Height of mountain 2
Height of mountain 3
 .
 .
Height of mountain 10 Constraints 0 ≤ height of mountain (integer) ≤ 10,000 Output Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain Sample Input 1 1819
2003
876
2840
1723
1673
3776
2848
1592
922 Output for the Sample Input 1 3776
2848
2840 Sample Input 2 100
200
300
400
500
600
700
800
900
900 Output for the Sample Input 2 900
900
800

Solution (Python):
lst = []

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

Solution (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]);

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

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

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

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

Solution (Python):
l = []

for _ in range(10):
  l.append(int(input()))
  
l.sort(reverse = True)

for ll in l[:3]:
  print(ll)

Solution (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)

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

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

Solution (Python):
a = []
x = 0

for i in range(10):
    a.append(int(input()))
for i in range(3):
    x = a.index(max(a))
    print(a[x])
    del a[x]

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

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

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

a.sort(reverse=True)

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

Solution (Python):
[print(i) for i in (sorted([int(input()) for _ in range(10)])[:6:-1])]

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

Solution (Python):
import sys

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

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

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

yama = sorted(yama , reverse = True)

for n in range(3):
    print(yama[n])

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

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

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

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

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

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

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

Solution (Python):
a=sorted([int(input()) for _ in range(10)])
print(a[9],a[8],a[7],sep='\n')

Solution (Python):
A=[]
for i in range(10):
  n= int(input())
  A.append(n)
A.sort()
A.reverse()
for i in range(0,3):
  print(A[i])

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

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

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

Solution (Python):
top_three = [0, 0, 0]
for i in range(10):
    input_height = int(input())
    if top_three[0] < input_height:
        top_three[2] = top_three[1]
        top_three[1] = top_three[0]
        top_three[0] = input_height
    elif top_three[1] < input_height:
        top_three[2] = top_three[1]
        top_three[1] = input_height
    elif top_three[2] < input_height:
        top_three[2] = input_height

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

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

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

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

Solution (Python):
l = [int(input()) for i in range(10)]
list.sort(l)
print(l[-1])
print(l[-2])
print(l[-3])

Solution (Python):
if __name__ == '__main__':

	tmp = [ int(input()) for _ in range(10)]
	ans = sorted(tmp,reverse=True)

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

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

Solution (Python):

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

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

height.sort()

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

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

high.sort()
high.reverse()
for i in high[:3]:
    print(i)

Solution (Python):
number=[]
while(1):
    try:
        s=int(input(""))
        number.append(s)
    except:break

print(*sorted(number,reverse=True)[0:3],sep='\n')

Solution (Python):
h = [0] * 10
for i in range(10):
    h[i] = int(input())

h.sort()
h.reverse()
print(h[0])
print(h[1])
print(h[2])

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

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

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

Solution (Python):
a=[]
for i in range(10):
    a.append(int(input()))
for i in range(3):
    c = 0
    for sample in a:
        if c < sample:
            c = sample
    print(c)
    a.remove(c)

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

for i in range(3):
    for j in range(i,10):
        if mountain[i] < mountain[j]:
            buff_mt = mountain[i]
            mountain[i] = mountain[j]
            mountain[j] = buff_mt

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

Solution (Python):
from sys import argv, stdin, stderr, stdout

heights = []
for i in range(0, 10):
	heights.append(int(stdin.readline()))
heights.sort(reverse=True)
for i in range(0, 3):
	stdout.write("%d\n" % heights[i])

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

Solution (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)

Solution (Python):
import sys
h=[int(i) for i in sys.stdin]
h.sort()
print(h[-1])
print(h[-2])
print(h[-3])

Solution (Python):
i = 0
arr = list()
for i in range(10):
  arr.append(int(raw_input()))

fst = sec = thr = -1

for i in range(10):
  if fst < arr[i]:
    thr = sec
    sec = fst
    fst = arr[i]
  elif sec < arr[i]:
    thr = sec
    sec = arr[i]
  elif thr < arr[i]:
    thr = arr[i]

print fst
print sec
print thr

Solution (Python):
data = [int(input()) for i in range(10)]
data.sort()
for j in range(9, 6, -1):
    print(data[j])

Solution (Python):


j = [0,0,0,0,0,0,0,0,0,0]

for i in range(0,10):
    j[i] = int(input())
j.sort(reverse=True)

for i in range(0,3):
    print(j[i])

Solution (Python):
mnt=[]

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

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

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

Lheight.sort(reverse=True)
for j in range(3):
    print(Lheight[j])

Solution (Python):
mountains = [0 for i in range(10)]
for i in range(10):
  mountains[i] = int(input())

highest1 = mountains[0]
if highest1 < mountains[1]:
  highest2 = highest1
  highest1 = mountains[1]
else:
  highest2 = mountains[1]

if highest1 < mountains[2]:
  highest2, highest3 = highest1, highest2
  highest1 = mountains[2]
elif highest2 < mountains[2]:
  highest3 = highest2
  highest2 = mountains[2]
else:
  highest3 = mountains[2]

for i in range(3,10):
  if highest1 < mountains[i]:
    highest1, highest2, highest3 = mountains[i], highest1, highest2
  elif highest2 < mountains[i]:
    highest2, highest3 = mountains[i], highest2
  elif highest3 < mountains[i]:
    highest3 = mountains[i]

print(highest1)
print(highest2)
print(highest3)

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

mt.sort()
mt.reverse()

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

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

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

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

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

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

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

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

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

Solution (Python):
x = []
for i in range(10):
    x.append(int(input()))
x.sort()
for i in reversed(range(7,10)):
    print(x[i])

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

a.sort()
for i in range(3):
	print(a.pop())

Solution (Python):
if __name__ == '__main__':
    lst = []
    for i in range(10):
        n = int(input())
        lst.append(n)
    lst.sort(reverse=True)
    for i in range(3):
        print(lst[i])

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

Solution (Python):
a = []
for i in range(10):
    list = [int(input())]
    a += list
    srt = sorted(a)

x = srt[:6:-1]
for k in x:
    print(k)

Solution (Python):
l = [input() for i in range(10)]
m = list(map(int,l))

lst = sorted(m,reverse=True)
for i in range(3):
    print(lst[i])

Solution (Python):
a = int(input() )
b = int(input() )
c = int(input() )
if b > a:
  tmp = a
  a = b
  b = tmp
if c > b:
  tmp = c
  c = b
  b = tmp
if b > a:
  tmp = b
  b = a
  a = tmp
for x in range(7):
  d = int(input() )
  if d > a:
    c = b
    b = a
    a = d
  elif d > b:
    c = b
    b = d
  elif d > c:
    c = d
print(a)
print(b)
print(c)

Solution (Python):
mountain_height = []

for i in range(10):
    new_data = int(input())
    mountain_height.append(new_data)

mountain_height.sort()
mountain_height.reverse()

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

Solution (Python):
heights = []
for _ in range(10):
  heights.append(int(input()))
heights.sort()
print(heights[-1])
print(heights[-2])
print(heights[-3])

Solution (Python):
hills=[]

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

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

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

Solution (Python):
l = []

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

l.sort(reverse=True)

for ll in l[:3]:
    print(ll)

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

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

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

Solution (Python):
import sys

l = [int(i) for i in sys.stdin]
l.sort(reverse=True)
for i in range(0, 3):
    print(l[i])

Solution (Python):

a=[(1<<29)*-1]*3
for i in range(10):
	h = int(input())
	if h > a[0]:
		a[2]=a[1]
		a[1]=a[0]
		a[0]=h
	elif h > a[1]:
		a[2]=a[1]
		a[1]=h
	elif h > a[2]:
		a[2]=h

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

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

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

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

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

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

Solution (Python):
first = 0
second = 0
third = 0
for i in range(10):
    height = int(input())
    if first <= height:
        third = second
        second = first
        first = height
    elif second <= height:
        third = second
        second = height
    elif third <= height:
        third = height
print(first)
print(second)
print(third)

Solution (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)

Solution (Python):
heights=[]
for i in range(10):
    n = int(input())
    heights.append(n)
heights.sort()
print(heights[-1])
print(heights[-2])
print(heights[-3])

Solution (Python):
a = [int(input()) for i in range(10)]
a.sort()
for i in range(1,4):
    print("%d"%a[-i])

Solution (Python):
list=[]
for i in range(0,10):
    n = int(raw_input())
    list.append(n)
    
list.sort(reverse=True)

for i in range(0,3):
    print list[i]

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

Solution (Python):
xs = [int(input()) for i in range(10)]
xs = list(reversed(sorted(xs)))[:3]
[print(x) for x in xs ]

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

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

ad = sorted(a, reverse=True)
for i in ad[:3]:
    print("{}".format(i))

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

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

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

height_list.sort()
height_list.reverse()

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

Solution (Python):
n = 10
f,s,t = -1,-2,-3
for _ in range(n):
    inp = int(input())
    if inp > f:
        f,s,t = inp,f,s
    elif inp > s:
        s,t = inp,s
    elif inp > t:
        t = inp
print(f)
print(s)
print(t)

Solution (Python):

import sys
import math
n=[]
for i in range(0,10):
  n.append(input())
n.sort()
n=n[::-1]
for i in range(0,3):
  print n[i]

Solution (Python):
dat = [int(raw_input()) for _ in range(10)]
dat.sort(reverse=True)
for i in range(3):
    print dat[i]

Solution (Python):
height = []

for apple in range(10):
	mountain = input()
	height.insert(-1, mountain)
	
height.sort()
height.reverse()

print height[0]
print height[1]
print height[2]