import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int count = n - k - 2; int left = 100000000; int right = 100000001; ArrayList ans = new ArrayList<>(); ans.add(left); ans.add(right); for (int i = 0; i < count; i++) { if (i % 2 == 0) { left--; ans.add(left); } else { right++; ans.add(right); } } while (ans.size() < n) { ans.add(left); } StringBuilder sb = new StringBuilder(); for (int i = 0; i < n; i++) { if (i > 0) { sb.append(" "); } sb.append(ans.get(i)); } System.out.println(sb); } }