import sys
def solve():

    a = []
    for line in sys.stdin:
        a.append(int(line))

    a.sort()
    a.reverse()
    for k in xrange(3):
        print a[k]
if __name__ == '__main__':
    solve() import sys sys def solve():

    a = []
    for line in sys.stdin:
        a.append(int(line))

    a.sort()
    a.reverse()
    for k in xrange(3):
        print a[k] solve a = [] a [] for line in sys.stdin:
        a.append(int(line))

     line sys.stdin sys stdin a.append(int(line)) a.append a append int(line) int line a.sort() a.sort a sort a.reverse() a.reverse a reverse for k in xrange(3):
        print a[k] k xrange(3) xrange 3 print a[k] a k if __name__ == '__main__':
    solve() __name__ == '__main__' __name__ '__main__' solve() solve def solve():

    a = []
    for line in sys.stdin:
        a.append(int(line))

    a.sort()
    a.reverse()
    for k in xrange(3):
        print a[k] def solve():

    a = []
    for line in sys.stdin:
        a.append(int(line))

    a.sort()
    a.reverse()
    for k in xrange(3):
        print a[k] solve
import sys
def solve():

    a = []
    for line in sys.stdin:
        a.append(int(line))

    a.sort()
    a.reverse()
    for k in xrange(3):
        print a[k]
if __name__ == '__main__':
    solve()