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: [470, 86, 429, 305, 267, 424, 292, 315, 306, 17, 104, 31, 44, 80, 397, 274, 217, 230, 213, 414]
Example Output: [86, 429, 305, 267, 424, 292, 315, 306, 104, 31, 44, 80, 397, 274, 217, 230, 213, 414]

Example Input: [209, 150, 39, 109, 416, 204, 492, 253, 341, 181, 294, 228, 106, 189, 441, 239, 248, 335, 486, 92]
Example Output: [209, 150, 109, 416, 204, 253, 341, 181, 294, 228, 106, 189, 441, 239, 248, 335, 486, 92]

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]