You are given a rooted tree of N nodes. Each node i contains a value ai. Initially, all values of the node are 0, your task is to process Q queries of the following two types:
The tree is rooted at 1.
Input format
Each test contains multiple test cases.
Note
Output format
For each query of type 1v, print av.
Constraints
(1≤t≤5⋅105)
(1≤Q,N≤105)
(0≤Y≤100)
(1≤v≤N)
(1≤x≤105)