Mars-man (MM) has n (1 <= n <= 100,000) piles of numbers (We will call them H). At first, Hi has only one number i.
Now he will perform m (1 <= m <= 300,000) operations. There are 3 kinds of operators and he will choose one of them each time.
For each OP 3, you should print a number. Certainly, MM hates big numbers, so you should print 10,000,000,000,000,000 if your answer is greater than 10,000,000,000,000,000.
* Line 1 : Two space-separated integers n and m.
* Line 2...m+1 : Two or three space-separated integers, OP (1 <= OP <= 3), x (1 <= x <= n), and y (1 <= y <= n) if OP != 2.
For each OP 3, each line print a number.
Your answer will be accepted if your answers to all queries have absolute or relative error of at most 106.