a,c = map(int,input().split()) if a < c: for i in range(c-a-1): print(a + i + 1) else: for i in range(a-c-1): print(c + i + 1)