#include #include using namespace std; using ll = long long; int main(){ ll l , r; int n; cin >> l >> r >> n; vector ans(n , 0); for(int i = 0; i < n; i++){ ll now = 0; now += r / n; if(r % n >= i)now += 1; now -= (l - 1) / n; if((l - 1) % n >= i)now -= 1; ans[i] = now; } for(int i = 0; i < n; i++){ cout << ans[i] << endl; } return 0; }