#include using namespace std; using ll = int64_t; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll l, r, n; cin >> l >> r >> n; vector L(n, -1), R(n, -1); for(ll i = 0; i < n; ++i){ if(l + i <= r) L[(l + i) % n] = l + i; if(r - i >= l) R[(r - i) % n] = r - i; } for(int i = 0; i < n; ++i){ if(L[i] == -1 && R[i] == -1) cout << 0 << "\n"; else if(L[i] == -1 || R[i] == -1) cout << 1 << "\n"; else cout << (R[i] - L[i]) / n + 1 << "\n"; } }