In the Kingdom of IOI, the wind always blows from sea to land. There are $N+1$ spots numbered from $0$ to $N$. The wind from Spot $0$ to Spot $N$ in order. Mr. JOI has a house at Spot $N$. The altitude of Spot $0$ is $A_0=0$, and thealtitude of Spot $i(1\le i\le N)$ is $A_i$.
The wind blows on the surface of the ground. The temperature of the wind changes according to the change ofthe altitude. The temperature of the wind at Spot $0$, which is closest to the sea, is $0$ degree. For each $i$ $(0\leq i\leq N-1),$ the change of the temperature of the wind from Spot $i$ to Spot $i+1$ depends only on the values of $A_i$ and $A_{i+1}$ in the following way:
- If $A_i<A_{i+1}$, the temperature of the wind decreases by $S$ degrees per altitude.
- If $A_i\ge A_{i+1}$, the temperature of the wind increases by $T$ degrees per altitude.
The tectonic movement is active in the land of the Kingdom of IOI. You have the data of tectonic movements for $Q$ days. In the $j$-th $(1\le j\le Q)$ day, the change of the altitude of Spot $k$ for $L_j\le k\le R_j$ $(1\le L_j\le R_j\le N)$ is described by $X_j$. If $X_j$ is not negative, the altitude increases by $X_j$. If $X_j$ is negative, the altitude decreases by $|X_j|$.
Your task is to calculate the temperature of the wind at the house of Mr. JOI after each tectonic movement.