#3319. 树形控件

树形控件

Background

Special for beginners, ^_^

Description

Format

Input

Output

输出为N行,依次为每个输出的返回码

Samples

23
root node1 node2 node3
node 1node2(link)
L 25 25 25 15
R 25 45 25 35
R 25 15 25 55
1
0
2

Limitation