#420. I love tree

I love tree

Description

Given a tree with nn nodes and qq operations, there are two kinds of operations.

11 aa bb : for a chain <a,b><a, b>, increase the value of x2x^2 to the x-th point on this chain for example the chain from a to b=(x1,x2,x3,x4,x5x1,x2,x3,x4,x5),after the operation,x1+=1,x2+=4,x3+=9,x4+=16,x5+=25x1+=1,x2+=4,x3+=9,x4+=16,x5+=25

22 xx :asks the value of x-th node

Format

Input

There is only one test case for this question.

The first line contains one integer n(1n105)n(1≤n≤10^5) .

The next n1n−1 line contains two integers u,v,which means that there is an edge between uu and vv.

The next line contains one integer q(1q105)q(1≤q≤10^5) .

The i-th of the following qq lines is in one of the 22 formats:

11 aa bb (1a,bn)(1 \leqslant a,b \leqslant n)

22 xx (1xn)(1 \leqslant x \leqslant n)

Output

Each line output one integer represents the answer.

Samples

3
1 2
2 3
5
1 1 2
2 1
1 2 1
2 2
2 3
1
5
0