K,N,H = map(int,input().split()) A = list(map(int,input().split())) Z = K*N AA = sum(A) if Z - AA >= 0 : print(Z - AA) else : print(-1)