#include #include #include #include #include #define Max(a, b) ((a) > (b) ? (a) : (b)) #define Min(a, b) ((a) > (b) ? (b) : (a)) #define abs(x) ((x) > 0 ? (x) : -(x)) #define rep(i, n) for(int i = 0; i < (n); i++) #define INF 1000000000000 //10^12 #define MOD 1000000007 //10^9 + 7 #define endl printf("\n") typedef long long ll; ll Floor(ll a, ll b){ if(a % b == 0) return a / b; else{ if(a < 0) return a / b - 1; else return a / b; } } int main(int argc, char **argv) { ll l, r; scanf("%lld %lld", &l, &r); ll n; scanf("%lld", &n); for (ll i = 0; i < n; i++) { if((l - i) % n == 0) printf("%lld\n", Floor(r - i, n) - (l - i) / n + 1); else printf("%lld\n", Floor(r - i, n) - Floor(l - i, n)); } return 0; }