#include "bits/stdc++.h" // Custom Header <<< #define ALL(x) x.begin(), x.end() #define rep(i, s, n) for(int i(s); i < int(n); ++i) #ifndef YDK #define eprintf(...) #endif using namespace std; using i64 = long long; using pii = pair; templateinline bool chmax(A &a, const B &b){return b>a ? a=b,1 : 0;} templateinline bool chmin(A &a, const B &b){return b>> signed main() { i64 l, r, n; cin >> l >> r >> n; const i64 L = (l + n - 1) / n * n; const i64 R = r / n * n; const i64 base = (R - L) / n; bool x[100010] {}; bool y[100010] {}; for (i64 i = l; i < L; ++i) { x[i % n] = true; } for (i64 i = R; i <= r; ++i) { y[i % n] = true; } eprintf("(L, R) = (%lld, %lld) base = %lld\n", L, R, base); for (int p = 0; p < n; ++p) { i64 ans = base; if (x[p]) ++ans; if (y[p]) ++ans; cout << ans << '\n'; } return 0; } /* vim:set foldmethod=marker foldmarker=<<<,>>> : */