#include<bits/stdc++.h> using namespace std; using Int = long long; template<typename T1,typename T2> inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template<typename T1,typename T2> inline void chmax(T1 &a,T2 b){if(a<b) a=b;} struct FastIO{ FastIO(){ cin.tie(0); ios::sync_with_stdio(0); } }fastio_beet; //INSERT ABOVE HERE signed main(){ Int l,r,n; cin>>l>>r>>n; auto calc= [&](Int x,Int y){ Int res=x/n; if(y!=0&&y<=x%n) res++; return res; }; for(Int i=0;i<n;i++) cout<<calc(r,i)-calc(l-1,i)<<"\n"; cout<<flush; return 0; }