main=map read.words<$>getLine>>=(\[l,r,n]->mapM_ print[(r-i)`div`n-(l-1-i)`div`n|i<-[0..n-1]])