#agc015a. [agc015_a]A+...+B Problem
[agc015_a]A+...+B Problem
Problem Statement
Snuke has integers. Among them, the smallest is , and the largest is . We are interested in the sum of those integers. How many different possible sums there are?
Constraints
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the number of the different possible sums.
Sample Input 1
4 4 6
Sample Output 1
5
There are five possible sums: , , , and .
Sample Input 2
5 4 3
Sample Output 2
0
Sample Input 3
1 7 10
Sample Output 3
0
Sample Input 4
1 3 3
Sample Output 4
1