import java.util.*; import java.io.*; import java.math.*; public class No836 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long l = sc.nextLong(), r = sc.nextLong(), n = sc.nextLong(); long o = (r - l + 1) / n; int hami = (int)((r - l + 1) % n); long[] c = new long[hami]; for(int i = 0; i < hami; i++) { c[i] = r % n - i; if(c[i] < 0) { c[i] += n; } } for(int i = 0; i < n; i++) { boolean f = false; for(int j = 0; j < hami; j++) { if(c[j] == i) { // System.out.println(o + 1); // continue; f = true; } } if(f) System.out.println(o + 1); else System.out.println(o); } // if((r - l + 1) % n == 0) { // for(int i = 0; i < n; i++) { // System.out.println(o); // } // }else { // for(int i = 0; i < n; i++) { // if(l % n <= i && i <= r % n) System.out.println(o + 1); // else System.out.println(o); // } // } } }