This is an output-only problem.
Saki has invented a new programming language called Tree++. A program in Tree++ can be represented as a rooted binary tree where each non-leaf node has exactly two children, and has one of the following labels: "add", "sub", "mul", "quo", "rem", "pow". Here, a leaf node of a rooted tree is a node with no child.
A program in Tree++ accepts an integer $$$X$$$, and either outputs an integer, or produces an error according to the following rule.
Satoru does not believe in the power of Tree++, so he challenged Saki to implement a short membership test for the 5 of his favourite numbers: $$$561$$$, $$$1105$$$, $$$1729$$$, $$$2465$$$, and $$$2821$$$. (Note that these are the 5 smallest Carmichael numbers, i.e. the composite numbers $$$x$$$ with $$$a^x=a \mod x$$$ for all integer $$$a$$$) More specifically,
Write a program to help Saki implement the membership test.
The output should be in the following format:
| $$$N$$$ | $$$R$$$ | ||
| $$$L_0$$$ | $$$L_1$$$ | $$$\cdots$$$ | $$$L_{N-1}$$$ |
| $$$U_0$$$ | $$$V_0$$$ | ||
| $$$\vdots$$$ | |||
| $$$U_{N-2}$$$ | $$$V_{N-2}$$$ | ||
where
For an internal node, there are two edges connecting it to its children. The left child is the one connected to the edge appearing earlier in the output, while the right child is the one connected to the edge appearing later in the output.
The output should satisfy the following constraints:
11 0
add sub mul quo rem leaf leaf leaf leaf leaf leaf
0 1
0 2
1 3
1 4
2 5
2 6
3 7
3 8
4 9
4 10
Please note that the sample output above does not implement the membership test for Satoru's favourite numbers, thus it will give Wrong Answer verdict upon submission. It is there only to present the output format.
| Name |
|---|


