- Time limit: 1.00 s
- Memory limit: 512 MB
Maija has bought herself a bag of skittles (colored candy pebbles). As she munches on the candies, she wonders how many different bag contents there can be. Each bag contains between and skittles that come in different colors.
Input
A single line contains three integers and .
Output
Print the number of different bags modulo .
Constraints
Example 1
Input:
1 1 10
Output:
10
Example 2
Input:
2 4 5
Output:
11
Example 3
Input:
18558 38661 75914
Output:
924425479