A word and number arrangement machine when given an input line of words and numbers rearrnges them following a particular rule in each step. The following is an illstation of input and rearrangement.
Input: 51 pour 31 star new 23 47 home
Step 1 : 23 51 pour 31 star new 47 home
Step 2 : 23 star 51 pour 31 new 47 home
Step 3 : 23 star 31 51 pour new 47 home
Step 4 : 23 star 31 pour 51 new 47 home
Step 5 : 23 star 31 pour 47 51 new home
Step 6 : 23 star 31 pour 47 new 51 home
As per the rule followed in the following questions the appropriate step for the given input.