if you don't like how the formatter laid out your code, you may need to introduce new functions/variables the formatter is not as clever as humans are, so it can sometimes produce less readable code ...
Explanation: The largest integer among the 5 integers is 78. So 78 is printed. Then the remaining integers present in the left and right side of the largest integer 78 are printed alternatively (45 56 ...