first=0
second=0
third=0

for i in range(10):
    mountain=int(input())
    if mountain>first:
        third=second
        second=first
        first=mountain
    elif mountain>second:
        third=second
        second=mountain
    elif mountain>third:
        third=mountain

print(first)
print(second)
print(third) first=0 first 0 second=0 second 0 third=0 third 0 for i in range(10):
    mountain=int(input())
    if mountain>first:
        third=second
        second=first
        first=mountain
    elif mountain>second:
        third=second
        second=mountain
    elif mountain>third:
        third=mountain i range(10) range 10 mountain=int(input()) mountain int(input()) int input() input if mountain>first:
        third=second
        second=first
        first=mountain
    elif mountain>second:
        third=second
        second=mountain
    elif mountain>third:
        third=mountain mountain>first mountain first third=second third second second=first second first first=mountain first mountain elif mountain>second:
        third=second
        second=mountain
     mountain>second mountain second third=second third second second=mountain second mountain elif mountain>third:
        third=mountain mountain>third mountain third third=mountain third mountain print(first) print first print(second) print second print(third) print third second=0 0 second second=mountain mountain second third=second second third third=mountain mountain third first=mountain mountain first third=second second third mountain=int(input()) int(input()) mountain second=first first second first=0 0 first third=0 0 third
first=0
second=0
third=0

for i in range(10):
    mountain=int(input())
    if mountain>first:
        third=second
        second=first
        first=mountain
    elif mountain>second:
        third=second
        second=mountain
    elif mountain>third:
        third=mountain

print(first)
print(second)
print(third)