import sys

def solve():
    a = [int(input()) for i in range(10)]
    a.sort(reverse=True)
    print(*a[:3], sep='\n')
    
if __name__ == '__main__':
    solve() import sys sys def solve():
    a = [int(input()) for i in range(10)]
    a.sort(reverse=True)
    print(*a[:3], sep='\n')
     solve int(input()) for i in range(10) for i in range(10) i range(10) range 10 for i in range(10) int(input()) int input() input a = [int(input()) for i in range(10)] a [int(input()) for i in range(10)] a.sort(reverse=True) a.sort a sort reverse=True reverse True print(*a[:3], sep='\n') print *a[:3] a[:3] a :3 3 sep='\n' sep '\n' if __name__ == '__main__':
    solve() __name__ == '__main__' __name__ '__main__' solve() solve def solve():
    a = [int(input()) for i in range(10)]
    a.sort(reverse=True)
    print(*a[:3], sep='\n')
     def solve():
    a = [int(input()) for i in range(10)]
    a.sort(reverse=True)
    print(*a[:3], sep='\n')
     solve
import sys

def solve():
    a = [int(input()) for i in range(10)]
    a.sort(reverse=True)
    print(*a[:3], sep='\n')
    
if __name__ == '__main__':
    solve()