#include #include #include #include #include #include #include #include #include #include #include #include #include typedef long long ll; using namespace std; const ll MOD = 1000000007LL; int main() { cin.sync_with_stdio(false); cin.tie(0); cout.tie(0); ll l, r, n; cin >> l >> r >> n; for (ll i = 0; i < n; i++) { ll p = l; if (l % n != i) { ll tmp = i - l % n; if (tmp < 0) tmp += n; p += tmp; } cout << 1 + (r - p) / n << '\n'; } return 0; }