Given natural numbers , , and , your task is to compute the following sum of products:
Since the result can be extremely large, you need to find the remainder of this sum when divided by .
The input consists of a single line containing the natural numbers , , and (a \leq b \leq 10^{18}, b - a \leq 10^7, and n \leq 10^7).
Output the computed sum of products modulo .
Example 1