#include main(){ int N,K; scanf("%d%d",&N,&K); int low = 0,high = 100000,turn = 0; for(int i = 0;i < N-K;i++){ printf("%d ",turn?++low:--high); turn = !turn; } for(int i = 0;i < K;i++){ printf("%d ",turn?high:low); } printf("\n"); }