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: [217, 401, 474, 30, 99, 165, 25, 346, 211, 357, 296, 67, 488, 315, 419, 228, 142, 222, 366, 82]
Example Output: [217, 401, 474, 30, 99, 165, 346, 211, 357, 296, 67, 315, 419, 228, 142, 222, 366, 82]

Example Input: [187, 191, 66, 174, 439, 377, 440, 486, 447, 461, 33, 498, 24, 177, 15, 384, 124, 80, 325, 136]
Example Output: [187, 191, 66, 174, 439, 377, 440, 486, 447, 461, 33, 24, 177, 384, 124, 80, 325, 136]

Example Input: [62, 374, 329, 206, 394, 441, 71, 335, 463, 412, 319, 44, 111, 250, 125, 136, 282, 355, 306, 416]
Example Output:
[62, 374, 329, 206, 394, 441, 71, 335, 412, 319, 111, 250, 125, 136, 282, 355, 306, 416]