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:
| Step | Arrangement |
|---|---|
| Input | bell year 56 89 flag 88 drum 57 |
| Step I | 56 bell year 89 flag 88 drum 57 |
| Step II | 56 57 bell year 89 flag 88 drum |
| Step III | 56 57 88 bell year 89 flag drum |
| Step IV | 56 57 88 89 bell year flag drum |
Following the same rule, the machine is given this input: lamp van 45 owl 58 sun 81 29
In Step IV, which element is 5th from the left end?
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: 29 lamp van 45 owl 58 sun 81; Step II: 29 45 lamp van owl 58 sun 81; Step III: 29 45 58 lamp van owl sun 81; Step IV: 29 45 58 81 lamp van owl sun.
Answer: lamp