def calc_mount_1(height_list):
    for i in range(len(height_list)):
        for i in range(len(height_list)-1):
            if height_list[i+1] < height_list[i]:
                tmp = height_list[i+1]
                height_list[i+1] = height_list[i]
                height_list[i] = tmp
            else:
                continue
    return height_list

N = 10
l = [input() for i in range(N)]
answer_array = calc_mount_1(l)
print "%d" % answer_array[-1]
print "%d" % answer_array[-2]
print "%d" % answer_array[-3] def calc_mount_1(height_list):
    for i in range(len(height_list)):
        for i in range(len(height_list)-1):
            if height_list[i+1] < height_list[i]:
                tmp = height_list[i+1]
                height_list[i+1] = height_list[i]
                height_list[i] = tmp
            else:
                continue
    return height_list calc_mount_1 for i in range(len(height_list)):
        for i in range(len(height_list)-1):
            if height_list[i+1] < height_list[i]:
                tmp = height_list[i+1]
                height_list[i+1] = height_list[i]
                height_list[i] = tmp
            else:
                continue
     i range(len(height_list)) range len(height_list) len height_list for i in range(len(height_list)-1):
            if height_list[i+1] < height_list[i]:
                tmp = height_list[i+1]
                height_list[i+1] = height_list[i]
                height_list[i] = tmp
            else:
                continue
     i range(len(height_list)-1) range len(height_list)-1 len(height_list) len height_list 1 if height_list[i+1] < height_list[i]:
                tmp = height_list[i+1]
                height_list[i+1] = height_list[i]
                height_list[i] = tmp
            else:
                continue
     height_list[i+1] < height_list[i] height_list[i+1] height_list i+1 i 1 height_list[i] height_list i tmp = height_list[i+1] tmp height_list[i+1] height_list i+1 i 1 height_list[i+1] = height_list[i] height_list[i+1] height_list i+1 i 1 height_list[i] height_list i height_list[i] = tmp height_list[i] height_list i tmp continue return height_list height_list height_list height_list N = 10 N 10 input() for i in range(N) for i in range(N) i range(N) range N for i in range(N) input() input l = [input() for i in range(N)] l [input() for i in range(N)] answer_array = calc_mount_1(l) answer_array calc_mount_1(l) calc_mount_1 l print "%d" % answer_array[-1] "%d" answer_array[-1] answer_array -1 print "%d" % answer_array[-2] "%d" answer_array[-2] answer_array -2 print "%d" % answer_array[-3] "%d" answer_array[-3] answer_array -3 l = [input() for i in range(N)] [input() for i in range(N)] l def calc_mount_1(height_list):
    for i in range(len(height_list)):
        for i in range(len(height_list)-1):
            if height_list[i+1] < height_list[i]:
                tmp = height_list[i+1]
                height_list[i+1] = height_list[i]
                height_list[i] = tmp
            else:
                continue
    return height_list def calc_mount_1(height_list):
    for i in range(len(height_list)):
        for i in range(len(height_list)-1):
            if height_list[i+1] < height_list[i]:
                tmp = height_list[i+1]
                height_list[i+1] = height_list[i]
                height_list[i] = tmp
            else:
                continue
    return height_list calc_mount_1 N = 10 10 N answer_array = calc_mount_1(l) calc_mount_1(l) answer_array
def calc_mount_1(height_list):
    for i in range(len(height_list)):
        for i in range(len(height_list)-1):
            if height_list[i+1] < height_list[i]:
                tmp = height_list[i+1]
                height_list[i+1] = height_list[i]
                height_list[i] = tmp
            else:
                continue
    return height_list

N = 10
l = [input() for i in range(N)]
answer_array = calc_mount_1(l)
print "%d" % answer_array[-1]
print "%d" % answer_array[-2]
print "%d" % answer_array[-3]