Task from the new DPA#3142

Task from the new DPA

1 second
256 megabytes
Easy

The executor has two commands:

  1. add

  2. 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?

Input

You are given three integers , , and (-1000 \leq A, B \leq 1000, 1 \leq C \leq 1000).

Output

Output the number of distinct numbers that can be obtained from the number using a program of exactly commands.

Examples

Example 1

Loading
Loading