import java.util.*; public class T01 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int[] input = new int[n]; int cnt = n - k - 2; for (int i = 0; i < k; i++) { input[i] = 0; } int r = 0; for (int i = k ; i < n; i++) { input[i] = r + i; r = 1000000 - r; } for(int i = 0; i < n; i++) { System.out.println(input[i]); } } }