LearnPy Hub
← Arena
IntermediateRating 1300

One Swap to the Top

Swap at most two digits of n once to make the largest possible number. Print it.

Input

One integer n (0 ≤ n ≤ 10¹⁸).

Output

One integer.

Sample 1

Input
2736
Output
7236

Sample 2

Input
9973
Output
9973
solution.py
Output appears here
One Swap to the Top · Python Arena problem · LearnPy Hub