#include using namespace std; int main() { long long r, l, n; cin >> r >> l >> n; long long r_array[n]; for (int i = 0; i < n; i++) { r_array[i] = 0; } while (r % n != 0) { r_array[r % n]++; r++; } while (l % n != n - 1) { r_array[l % n]++; l--; } for (int i = 0; i < n; i++) { r_array[i] += (l - r + 1) / n; } for (int i = 0; i < n; i++) { cout << r_array[i] << endl; } return 0; }