'''
카드1
https://www.acmicpc.net/problem/2161
'''

N = int(input())
cards = [str(n+1) for n in range(N)]
answer = []
while cards :
    answer.append(cards.pop(0))
    if cards :
        cards.append(cards.pop(0))

print(" ".join(answer))
198a4c0f1556852c8afb8f2beb423c8135f6e99f
<mask token>

<mask token>
while cards:
    answer.append(cards.pop(0))
    if cards:
        cards.append(cards.pop(0))
print(' '.join(answer))

<mask token>
N = int(input())
cards = [str(n + 1) for n in range(N)]
answer = []
while cards:
    answer.append(cards.pop(0))
    if cards:
        cards.append(cards.pop(0))
print(' '.join(answer))

'''
카드1
https://www.acmicpc.net/problem/2161
'''

N = int(input())
cards = [str(n+1) for n in range(N)]
answer = []
while cards :
    answer.append(cards.pop(0))
    if cards :
        cards.append(cards.pop(0))

print(" ".join(answer))