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