#include "bits/stdc++.h" using namespace std; using ll = long long; using pii = pair; using pll = pair; using vi = vector; using vl = vector; using vvi = vector; using vvl = vector; const int INF = 1 << 28; const ll MOD = 1000000007; template bool chmax(T &a, const T &b) { return (a < b) ? (a = b, 1) : 0; } template bool chmin(T &a, const T &b) { return (b < a) ? (a = b, 1) : 0; } int main() { cin.tie(0); ios::sync_with_stdio(false); ll l, r, n; cin >> l >> r >> n; ll x = l % n; ll y = r % n; ll xx = (l + n - x) / n; ll yy = (r - y) / n; ll z = yy - xx; for (int i = 0; i < n; ++i) { ll ret = z; if (x <= i) ret++; if (i <= y) ret++; cout << ret << "\n"; } return 0; }