import math, sequtils, strutils var n: seq[int] = stdin.readline.split.map(parseInt) a: seq[int] = stdin.readline.split.map(parseInt) ans: int = -1 if n[0] * n[1] >= sum(a): ans = n[0] * n[1] - sum(a) echo ans