Direction-(6-10) Study the following information to answer the given questions. A word/number arrangement machine when given an input line of words, or numerals or a combination of both, rearranges them following a particular rule in each step.
Input : 1 11 21 31 41 51 61 71
Step I : 11 1 21 31 41 51 61 71
Step II : 21 1 11 31 41 51 61 71
Step III : 31 1 11 21 41 51 61 71
Step IV : 41 1 11 21 31 51 61 71
Step V : 51 1 11 21 31 41 61 71
Step VI : 61 1 11 21 31 41 51 71
Step VII : 71 1 11 21 31 41 51 6
How many steps are required to get the final output for the following input?
Input : 18 7 13 97 86 42 59