'''****** Задание ******** *Магазин. ''' price = int(input()) weight = int(input()) money = int(input()) print(money - price * weight)