if __name__ == '__main__':
    # ??????????????\???
    mountains = [int(input()) for _ in range(10)]

    # ???????????????
    mountains.sort(reverse=True)

    # ???????????????
    print('{0}\n{1}\n{2}'.format(mountains[0], mountains[1], mountains[2])) if __name__ == '__main__':
    # ??????????????\???
    mountains = [int(input()) for _ in range(10)]

    # ???????????????
    mountains.sort(reverse=True)

    # ???????????????
    print('{0}\n{1}\n{2}'.format(mountains[0], mountains[1], mountains[2])) __name__ == '__main__' __name__ '__main__' int(input()) for _ in range(10) for _ in range(10) _ range(10) range 10 for _ in range(10) int(input()) int input() input mountains = [int(input()) for _ in range(10)] mountains [int(input()) for _ in range(10)] mountains.sort(reverse=True) mountains.sort mountains sort reverse=True reverse True print('{0}\n{1}\n{2}'.format(mountains[0], mountains[1], mountains[2])) print '{0}\n{1}\n{2}'.format(mountains[0], mountains[1], mountains[2]) '{0}\n{1}\n{2}'.format '{0}\n{1}\n{2}' format mountains[0] mountains 0 mountains[1] mountains 1 mountains[2] mountains 2 mountains = [int(input()) for _ in range(10)] [int(input()) for _ in range(10)] mountains
if __name__ == '__main__':
    # ??????????????\???
    mountains = [int(input()) for _ in range(10)]

    # ???????????????
    mountains.sort(reverse=True)

    # ???????????????
    print('{0}\n{1}\n{2}'.format(mountains[0], mountains[1], mountains[2]))