a,b,c=map(int,input().split()) #sum_name=0 sum_name=a*b #print(sum_name) count=list(map(int,input().split())) add=sum(count) print(sum_name-add)