#include #include using namespace std; int main() { int l,r,n; cin >> l >> r >> n; int remainder1 = l % n; int remainder2 = r % n; int baseCount = (r - (n - remainder2) - (l - (n - remainder1))) / n; for(int i = 0; i < n; i++) { int temp = 0; if(remainder1 <= i) { temp++; } if(remainder2 >= i) { temp++; } if(remainder1 == 0 && remainder2 == i - 1) { temp--; } cout << (baseCount + temp) << endl;; } return 0; }