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) { f = true; break; } } if(f) System.out.println(o + 1); else System.out.println(o); } } }