import java.io.PrintWriter; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); long l = sc.nextLong(); long r = sc.nextLong() + 1; long n = sc.nextLong(); sc.close(); long a = l % n; long b = r % n; long c = (r - l) / n; PrintWriter pw = new PrintWriter(System.out); for (int i = 0; i < n; i++) { long ans = c; if (a < b) { if (i >= a) { ans++; } if (i >= b) { ans--; } } if (b < a) { if (i < b) { ans++; } if (a <= i) { ans++; } } pw.println(ans); } pw.flush(); } }