Sereja has got an array, consisting of
n integers,
a1,a2,...,an. Sereja is an active boy, so he is now going to complete
m operations. Each operation will have one of the three forms:
-
Make vi-th array element equal to xi. In other words, perform the assignment avi=xi.
-
Increase each array element by yi. In other words, perform n assignments ai=ai+yi (1≤i≤n).
-
Take a piece of paper and write out the qi-th array element. That is, the element aqi.
Help Sereja, complete all his operations.
Output
For each third type operation print value
aqi. Print the values in the order, in which the corresponding queries follow in the input.
Examples
Output
2
9
11
20
30
40
39