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