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(); 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 (a > b) { if (i <= b) { ans++; } if (i >= a) { ans++; } } pw.println(ans); } pw.flush(); } }