{ll@n,@x,s=-x*~-n;rep(n)s+=rd_ll();wt(s);}