import java.io.IOException; import java.io.InputStreamReader; import java.io.BufferedReader; import java.util.Scanner; class Main{ public static void main(String[] args) throws IOException{ Scanner sc = new Scanner(System.in); long l = sc.nextLong(); long r = sc.nextLong(); int n = sc.nextInt(); int ans[] = new int[n]; while(l % n != 0 && l <= r){ ans[(int)(l%n)]++; l++; } long x = (r-l)/n; l += x * n; while(l <= r){ ans[(int)(l%n)]++; l++; } for(int i = 0; i < n; i++) System.out.println(ans[i] + x); } }