#include using namespace std; using ll = long long; ll solve(ll x, ll n, ll m) { return x / n + (x % n >= m); } int main() { cin.tie(0); ios::sync_with_stdio(false); ll L, R, n; cin >> L >> R >> n; for (ll i = 0; i < n; i++) { cout << solve(R, n, i) - solve(L - 1, n, i) << "\n"; } return 0; }