#coding:utf-8

import sys

if __name__ == '__main__':

    nums = []

    for line in sys.stdin:
        if line == "\n":
            break
        else :
            nums.append(int(line))

    for n in sorted(nums, reverse=True)[:3]:
        print(n) import sys sys if __name__ == '__main__':

    nums = []

    for line in sys.stdin:
        if line == "\n":
            break
        else :
            nums.append(int(line))

    for n in sorted(nums, reverse=True)[:3]:
        print(n) __name__ == '__main__' __name__ '__main__' nums = [] nums [] for line in sys.stdin:
        if line == "\n":
            break
        else :
            nums.append(int(line))

     line sys.stdin sys stdin if line == "\n":
            break
        else :
            nums.append(int(line))

     line == "\n" line "\n" break nums.append(int(line)) nums.append nums append int(line) int line for n in sorted(nums, reverse=True)[:3]:
        print(n) n sorted(nums, reverse=True)[:3] (nums, reverse=True) sorted nums reverse=True reverse True :3 3 print(n) print n nums = [] [] nums
#coding:utf-8

import sys

if __name__ == '__main__':

    nums = []

    for line in sys.stdin:
        if line == "\n":
            break
        else :
            nums.append(int(line))

    for n in sorted(nums, reverse=True)[:3]:
        print(n)