Rashad loves cars and he finally managed to start his own carfactory! Factory has employees, each of them has exactly one superior (except Rashad - he is by default everybody's superior) . Rashad is denoted by number , and the rest of the employees with numbers to . Every employee can raise or lower the wages of all of his subordinates (both direct subordinates and those lower in the hierarchy tree). Rashad's role is to prevent abuse of such power, so from time to time he wants to know wage of a particular employee. He is asking you to write a program which will help him monitor wage changes, given a sequence of commands described in the input section.
First line of input contains two space-separated positiveintegers (1 \le N \le 500000), number of employees, and (1 \le M \le 500000), number of wage changes and wage queries.Next lines contain the information about employees , , ..., (respectively): starting wage and the identifier of his direct supervisor. Remark: Rashad has no supervisor, so his line will contain only his starting wage.
Next lines contain one of the following:
p A X - employee increases (or decreases in case of anegative ) wage of all his subordinates by the amount (-10000 \le X \le 10000);
u A - Rashad wants to know the wage of employee .
Output should contain one line for each '2' query in the input - the current wage of the given employee.
Example 1
Example 2
Example 3