#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; 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 || l - i < 0) { printf("%lld\n", (r - i) / n - (l - i) / n + 1); } else { printf("%lld\n", (r - i) / n - (l - i) / n); } } return 0; }