n,k=map(int, input().split()) s=lambda x:[1,-1][x%2] for i in range(n): t=n+s(i)*((i+1)//2) if i