# 3.1. Condition:

The number 4597 is displayed on the computer screen. In one move, it is allowed to swap any two adjacent digits, but after this, 100 is subtracted from the resulting number. What is the largest number that can be obtained by making no more than two moves?
Answer: 8357

## Solution.

The first digit cannot exceed 8, since to obtain the other digits, you need to move the nine forward by two places and subtract one from it. Note that in any other example, the first digit will be less than 8, as we can only get an eight from a nine, and all other digits are less than 9. The only way to get the digit 8 in the first position is to move the 9 forward twice.

#