A word and number arrangement machine rearranges an input line step by step, following a rule. Here is an illustration of the input and the steps:
Input: coin 18 fish wind 28 86
Step I: 18 coin fish wind 28 86
Step II: 18 28 coin fish wind 86
Step III: 18 28 86 coin fish wind
Following the same rule, the machine is given this input: flag pen 64 drum 62 59
Which step is the last step for this input?
Rule (from the illustration): In each step the smallest number not yet arranged moves to the left end, after the numbers already arranged; the words keep their order.
For the new input: Step I: 59 flag pen 64 drum 62; Step II: 59 62 flag pen 64 drum; Step III: 59 62 64 flag pen drum.
Answer: Step III