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: nest gate 14 47 77 wind
Step I: 14 nest gate 47 77 wind
Step II: 14 47 nest gate 77 wind
Step III: 14 47 77 nest gate wind
Following the same rule, the machine is given this input: gate 76 60 desk 21 year
Which of the following is Step III?
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: 21 gate 76 60 desk year; Step II: 21 60 gate 76 desk year; Step III: 21 60 76 gate desk year.
Answer: 21 60 76 gate desk year