#include using namespace std; using ll = long long; ll l, r, n; int main() { cin >> l >> r >> n; ll L = l % n; for(int i = 0; i < n; ++i) { ll next; if(L > i) next = l + n - L + i; else next = l + i - L; cout << (r - next) / n + 1 << '\n'; } return 0; }