LearnPy Hub
← Arena
EasyRating 800

Buying Bananas

The i-th banana costs i × k Tk. A soldier has n Tk and wants w bananas. Print how much he must borrow (0 if none).

Input

k n w.

Output

A number.

Sample 1

Input
3 17 4
Output
13

Sample 2

Input
1 100 3
Output
0
solution.py
Output appears here
Buying Bananas · Python Arena problem · LearnPy Hub