
The first line contains two integers
and
(
,
).
The second line containsintegers: the initial values of
(
).
The nextlines each contain three integers, representing the operations. It is guaranteed that
,
,
.
Print the answer for each query. The answer may not be an integer, so your output will be considered correct if its absolute or relative error does not exceed.