n = int(input()) A = set() for i in reversed(range(1, n+1)): if n-i in A or n-i == i: break else: A.add(i) print(*list(A))