N,D,K=map(int,input().split()) def calc(l,r,K): return (l+(l+K-1))*K//2,(r+(r-K+1))*K//2 ANS=[0] for tests in range(K): SUM=sum(ANS) for j in range(ANS[-1]+1,N+1): if N-(j+1)+1