You are given a binary tree of N vertices numbered from 1 to N.
There are Q qustions.
Print the every direction if you want to walk from node A to node B.
P: move to parent
R: move to right child
L: move to left child
The first line contains a single integer N (2≤N≤3000).
Next N lines contain 2 integers, represent the left child and the right child of the i th node. (and 0 means empty)
Next line contains a integer Q (1≤Q≤3000);
The next Q lines contain two integers, A, B.
For each question, output every direction that walks from node A to node B.
Remember add a new line in the end of each question.