num = int(input('Enter a number: ')) base = 1 while base != num + 1: print(base, (' '), end=('')) base = base + 1