#include #include #include #include #include #include #include #include using namespace std; int main() { long long l, r, n, p , q, s; cin >> l >> r >> n; p = r % n; q = l % n; s = (r - l)/n; for (long long i = 0; i < n; i++){ if(p > q && (i < q || i > p)) cout << s << endl; else if (p > q && i <= p && q <= i) cout << s + 1 << endl; else if (p == q && i == p) cout << s + 1 << endl; else if (p == q && i != p) cout << s << endl; else if (p < q && (i >= q || i <= p)) cout << s + 1 << endl; else cout << s << endl; } }