import java.io.IOException; import java.io.InputStreamReader; import java.io.BufferedReader; import java.util.Scanner; class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); long l, r; int n; String[] line = br.readLine().split(" "); l = Long.parseLong(line[0]); r = Long.parseLong(line[1]); n = Integer.parseInt(line[2]); int ans[] = new int[n]; while(l % n != 0 && l <= r){ ans[(int)(l%n)]++; l++; } long x = (r-l)/n; l += x * n; while(l <= r){ ans[(int)(l%n)]++; l++; } for(int i = 0; i < n; i++) System.out.println(ans[i] + x); } }