You are given a rooted tree of nodes. Each node contains a value . Initially, all values of the node are , your task is to process queries of the following two types:
The tree is rooted at .
Input format
Each test contains multiple test cases.
Note
Output format
For each query of type , print .
Constraints