t=[int(i) for i in input().split()] s=[int(i) for i in input().split()] total=t[0]*t[1]*t[2]-sum(s) print(total)