if __name__=="__main__":
    dataset = []
    for i in range(10):
        a = int(input())
        dataset.append(a)
    for j in range(3):
        print(max(dataset))
        dataset.remove(max(dataset)) if __name__=="__main__":
    dataset = []
    for i in range(10):
        a = int(input())
        dataset.append(a)
    for j in range(3):
        print(max(dataset))
        dataset.remove(max(dataset)) __name__=="__main__" __name__ "__main__" dataset = [] dataset [] for i in range(10):
        a = int(input())
        dataset.append(a)
     i range(10) range 10 a = int(input()) a int(input()) int input() input dataset.append(a) dataset.append dataset append a for j in range(3):
        print(max(dataset))
        dataset.remove(max(dataset)) j range(3) range 3 print(max(dataset)) print max(dataset) max dataset dataset.remove(max(dataset)) dataset.remove dataset remove max(dataset) max dataset dataset = [] [] dataset a = int(input()) int(input()) a
if __name__=="__main__":
    dataset = []
    for i in range(10):
        a = int(input())
        dataset.append(a)
    for j in range(3):
        print(max(dataset))
        dataset.remove(max(dataset))