nums = [30, 12, 7, 24]
nums.sort(reverse=True)
print(" ".join(str(n) for n in nums))
