One cold and foggy night, you walk down a shady alley. There should be a lamp every few metres but none of them seem to work, and in this night, not even the moon enlightens your path. Alone and in the dark, you wonder: "Even if there was a working lamp somewhere, how much would it lighten my way?". Now, back at home, you want to calculate this.
The alley can be modelled as a line with a length of $$$n$$$ metres. The fog has a uniform density and reduces the light of a lamp by a factor of $$$1-p$$$ every metre. The brightness at one point is the sum of the light that reaches this point from every lamp. You want to calculate this brightness at some points after placing some lamps.
The input consists of:
It can be shown that the brightness can be calculated as a fraction $$$\frac{P}{Q}$$$ where $$$Q$$$ is not divisible by $$$10^9+7$$$. For each query of type "?", print the brightness as $$$P\cdot Q^{-1} \bmod 10^9+7$$$ in a single line.
5 6 0.25+ 4 2? 1? 2? 3? 4? 5
3 4 3 250000004 187500003
5 7 0.33+ 9 1? 5+ 4 3? 2? 5- 9 1? 2
312342734 470000012 341542736 760000008
The brightness in the alley after placing the lamp will look like this:
| 3 | 4 | 3 | 2.25 | 1.6875 |
| Name |
|---|


