def get_input():
    while True:
        try:
            yield ''.join(raw_input().strip())
        except EOFError:
            break
height = list(get_input())
height = sorted(map(int,height),reverse=True)
print height[0]
print height[1]
print height[2] def get_input():
    while True:
        try:
            yield ''.join(raw_input().strip())
        except EOFError:
            break get_input while True:
        try:
            yield ''.join(raw_input().strip())
        except EOFError:
            break True try:
            yield ''.join(raw_input().strip())
        except EOFError:
            break except EOFError:
            break break yield ''.join(raw_input().strip()) ''.join(raw_input().strip()) ''.join '' join raw_input().strip() ().strip () raw_input strip height = list(get_input()) height list(get_input()) list get_input() get_input height = sorted(map(int,height),reverse=True) height sorted(map(int,height),reverse=True) sorted map(int,height) map int height reverse=True reverse True print height[0] height 0 print height[1] height 1 print height[2] height 2 height = sorted(map(int,height),reverse=True) sorted(map(int,height),reverse=True) height def get_input():
    while True:
        try:
            yield ''.join(raw_input().strip())
        except EOFError:
            break def get_input():
    while True:
        try:
            yield ''.join(raw_input().strip())
        except EOFError:
            break get_input height = list(get_input()) list(get_input()) height
def get_input():
    while True:
        try:
            yield ''.join(raw_input().strip())
        except EOFError:
            break
height = list(get_input())
height = sorted(map(int,height),reverse=True)
print height[0]
print height[1]
print height[2]