number= int(input( "Enter a number: " )) write = 1 for number in range( 1,number ) : print( write ) write = write + 1 for number in range(-1, number) : print( write ) write = write -1