Arrange the digits 4, 1, 7 in descending order to get the greatest number: 7, 4, 1 → 741.

• To get the second greatest, keep the first digit the same (7) and swap the other two digits.
• 7, 1, 4 → 714

Final Answer: 714