You are given $$$N$$$ discs of different sizes, stacked from largest at the bottom to smallest at the top on rod $$$1$$$. There are two other rods, $$$2$$$ and $$$3$$$, which are empty.
Your task is to move all the discs from rod $$$1$$$ to rod $$$3$$$, obeying the following rules in the minimum number of moves:
A single integer: $$$ N\;(1 \le N \le 21) $$$
On the first line, print an integer $$$M$$$ —the total number of moves.
Then print exactly $$$M$$$ lines, each containing two space-separated integers: $$$ S\;T $$$ indicating that the top disc is moved from rod $$$S$$$ to rod $$$T$$$.
Input:
3
Output:
7 1 3 1 2 3 2 1 3 2 1 2 3 1 3