l=lambda:map(int,raw_input().split()) n,d,t=l() x=l() for _ in[0]*t: nx=[] for i in x: nx+=[i-d,i,i+d] x=set(nx) print len(x)