h = [int(input()) for _ in range(3)] h.sort(reverse=True) for i in range(3): print(h[i])