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: [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: [126, 447, 140, 260, 448, 212, 414, 458, 116, 161, 432, 385, 74, 31, 13, 229, 300, 30, 322, 26]
Example Output: [126, 447, 140, 260, 448, 212, 414, 116, 161, 432, 385, 74, 31, 229, 300, 30, 322, 26]

Example Input: [299, 252, 143, 181, 132, 154, 336, 101, 303, 359, 439, 285, 182, 311, 240, 219, 141, 144, 224, 64]
Example Output:
[299, 252, 143, 181, 132, 154, 336, 101, 303, 359, 285, 182, 311, 240, 219, 141, 144, 224]