You are given integer arrays and of length , indexed from . For every (), .
An interval is awesome if both conditions hold:
In one operation, choose indices in the current array such that and , and increase by . All other elements remain unchanged. Elements outside the interval cannot be used.
You are given queries. Each query consists of four integers . Count the awesome intervals satisfying and . Queries are independent and do not modify or .
The input is given from Standard Input in the following format:
Print the answer to each query on a separate line, in input order.
The -th query is ().
All input values are integers.
| 3 | 60 | No additional constraints. |