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

import sys

data = []
count = 0
for i in sys.stdin:
    data.append(int(i))
    count = count+1
    if count == 10:
        break

N = len(data)
m = 100

for i in range(m):
    for n in range(N-1):
        a = data[n]
        b = data[n+1]
        if a <= b:
            data[n] = b
            data[n+1] = a
        else:
            pass
for i in range(3):
    print(data[i]) import sys sys data = [] data [] count = 0 count 0 for i in sys.stdin:
    data.append(int(i))
    count = count+1
    if count == 10:
        break i sys.stdin sys stdin data.append(int(i)) data.append data append int(i) int i count = count+1 count count+1 count 1 if count == 10:
        break count == 10 count 10 break N = len(data) N len(data) len data m = 100 m 100 for i in range(m):
    for n in range(N-1):
        a = data[n]
        b = data[n+1]
        if a <= b:
            data[n] = b
            data[n+1] = a
        else:
            pass i range(m) range m for n in range(N-1):
        a = data[n]
        b = data[n+1]
        if a <= b:
            data[n] = b
            data[n+1] = a
        else:
            pass n range(N-1) range N-1 N 1 a = data[n] a data[n] data n b = data[n+1] b data[n+1] data n+1 n 1 if a <= b:
            data[n] = b
            data[n+1] = a
        else:
            pass a <= b a b data[n] = b data[n] data n b data[n+1] = a data[n+1] data n+1 n 1 a for i in range(3):
    print(data[i]) i range(3) range 3 print(data[i]) print data[i] data i data = [] [] data m = 100 100 m count = 0 0 count a = data[n] data[n] a b = data[n+1] data[n+1] b count = count+1 count+1 count N = len(data) len(data) N
# -*- coding:utf-8 -*-

import sys

data = []
count = 0
for i in sys.stdin:
    data.append(int(i))
    count = count+1
    if count == 10:
        break

N = len(data)
m = 100

for i in range(m):
    for n in range(N-1):
        a = data[n]
        b = data[n+1]
        if a <= b:
            data[n] = b
            data[n+1] = a
        else:
            pass
for i in range(3):
    print(data[i])