x,y,z=map(int,input().split()) a=map(int,input().split()) total=sum(a) if total<=x*y: print(x*y-total) else: print(-1)