l, r, n = gets.chomp.split.map(&:to_i) v = r - l + 1 ans = [v / n] * n (v % n).times do |i| ans[i] += 1 end puts ans.rotate(-1)