In Graph theory, tree is a simple connected acyclic graph. You are given a tree consists of N nodes numbered from 1 to N. Each node i have a value Ai associated with it. Your task is writing a program doing Q operations, each operations is 1 of 2 following types:
Input
The first line is T - the number of test cases. Then T test cases follow.
Each test consists of several lines.
Output
For each operations of type 2, print the answer in a single line.
Constraints