The executor has two commands:
add
add
The first command increases the number on the screen by , the second increases it by . A program for this executor is a sequence of these commands. How many distinct numbers can be obtained starting from the number using a program consisting of exactly commands?
You are given three integers , , and (-1000 \leq A, B \leq 1000, 1 \leq C \leq 1000).
Output the number of distinct numbers that can be obtained from the number using a program of exactly commands.
Example 1