Tower of Hanoi

To recurse, or not to recurse, that is the question.

Run 6

Input

31
2
4

Possible Output

Remember, for this challenge, there might be more than one valid output.

1 to B
3 to C
1 to A
2 to C
1 to C