fn main() { let mut xx = String::new(); std::io::stdin().read_line(&mut xx).ok(); let xx: Vec = xx.split_whitespace().flat_map(str::parse).collect(); let mut answer = vec![(xx[1] - xx[0]) / xx[2]; xx[2]]; let rem_l = xx[0] % xx[2]; let rem_r = xx[1] % xx[2]; if rem_l <= rem_r { for i in rem_l..=rem_r { answer[i] += 1; } } else { for i in (0..=rem_r).chain(rem_l..xx[2]) { answer[i] += 1; } } let answer: Vec = answer.iter().map(|&n| n.to_string()).collect(); println!("{}", answer.join("\n")); }