while True:
    var = int(input())
    vaz = ''
    if var != 0:
        for i in range(1, var + 1):
            vaz += str(i) + ' '
        print(vaz.strip())
    else:
        break

3867b634c4733d1134a0ea1e28b9db98f890b0b7
<mask token>

while True:
    var = int(input())
    vaz = ''
    if var != 0:
        for i in range(1, var + 1):
            vaz += str(i) + ' '
        print(vaz.strip())
    else:
        break
