import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); int x = (N-1)%(K+1); int y = 0; System.out.println(x); while(true){ y++; if(y == 5){ System.out.println(N); break; } x += K; System.out.println(x); if(x > N)break; x += 1; System.out.println(x); } } }