import java.io.*; import java.util.Scanner; public class Main_yukicoder836 { private static Scanner sc; private static Printer pr; private static void solve() { long l = sc.nextLong(); long r = sc.nextLong(); int n = sc.nextInt(); for (int i = 0; i < n; i++) { pr.println(f(r, n, i) - f(l - 1, n, i)); } } private static long f(long l, int n, int i) { long ret = l / n; if (i == 0) { return ret; } else { return ret + (l % n >= i ? 1 : 0); } } // --------------------------------------------------- public static void main(String[] args) { sc = new Scanner(System.in); pr = new Printer(System.out); solve(); pr.close(); sc.close(); } static class Printer extends PrintWriter { Printer(OutputStream out) { super(out); } } }