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