import sequtils,strutils,math

var knf,a = stdin.readLine.split.map parseInt
var cnt = knf[0] * knf[1] - sum a
echo if cnt < 0: -1 else: cnt