In this task, you are given a list of numbers. The list of numbers is separated with comma and inside brackets. You need to remove the maximum(the number with the largest value) and minimum(the number with the smallest value) element from the list and return the list in the same order as input. Your answer should be a list of numbers separated by comma, inside brackets.

Example Input: [163, 98, 437, 147, 434, 364, 60, 172, 375, 181, 225, 470, 366, 305, 153, 282, 290, 185, 322, 297]
Example Output: [163, 98, 437, 147, 434, 364, 172, 375, 181, 225, 366, 305, 153, 282, 290, 185, 322, 297]

Example Input: [159, 157, 465, 476, 119, 143, 26, 437, 78, 441, 53, 254, 250, 393, 67, 346, 218, 438, 440, 31]
Example Output: [159, 157, 465, 119, 143, 437, 78, 441, 53, 254, 250, 393, 67, 346, 218, 438, 440, 31]

Example Input: [124, 441, 385, 280, 161, 451, 497, 181, 54, 260, 282, 23, 492, 325, 312, 433, 303, 472, 120, 174]
Example Output:
[124, 441, 385, 280, 161, 451, 181, 54, 260, 282, 492, 325, 312, 433, 303, 472, 120, 174]