#include using namespace std; typedef long long ll; int main() { cin.tie(0); ios::sync_with_stdio(false); ll l, r, n; cin >> l >> r >> n; for (int i = 0; i < n; i++) { ll k = (r - i + n) / n - (l - i + n - 1) / n; cout << k << "\n"; } return 0; }