while True: n = int(input()) if not n: break; else: for i in range (n): print (i+1, end = " ") print()