E. Empty Squares
time limit per test
0.25 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output

Mart'in has a board of $$$1\times N$$$ squares. He also has $$$N$$$ tiles of $$$1\times 1, 1\times 2, \ldots, 1\times N$$$ squares, one of each type. He has placed one of the tiles on the board. His friend, Nico, wants to place some of the remaining tiles in such a way that as many squares as possible are covered. How many squares will remain empty if he succeeds?

Tiles placed on the board cannot overlap each other. Besides, each placed tile must be located completely within the board and must cover whole squares.

Input

The input consists of a single line that contains three integers $$$N$$$ ($$$1\leq N\leq 1000$$$), $$$K$$$ ($$$1\leq K\leq N$$$) and $$$E$$$ ($$$0\leq E\leq N-K$$$), indicating that the board has $$$1\times N$$$ squares, and a tile of $$$1\times K$$$ squares is placed leaving $$$E$$$ empty squares to its left.

Output

Output a single line with an integer indicating the number of squares that will remain empty if Nico covers as many squares as possible with the remaining tiles.

Examples
Input
6 2 2
Output
3
Input
1000 1 1
Output
1