l = [int(i) for i in input().split()] k,n,f = l[0],l[1],l[2] s = k*n a = sum([int(i) for i in input().split()]) if a > s: print(-1) else: print(s-a)