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.

[252, 371, 47, 329, 84, 113, 310, 464, 98, 275, 250, 453, 187, 91, 499, 147, 435, 61, 32, 153]
[252, 371, 47, 329, 84, 113, 310, 464, 98, 275, 250, 453, 187, 91, 147, 435, 61, 153]

[465, 202, 316, 315, 113, 470, 381, 181, 422, 313, 187, 464, 304, 347, 234, 62, 287, 199, 416, 469]
[465, 202, 316, 315, 113, 381, 181, 422, 313, 187, 464, 304, 347, 234, 287, 199, 416, 469]

[94, 340, 183, 405, 59, 391, 242, 215, 478, 205, 217, 130, 277, 466, 407, 436, 493, 65, 231, 325]

[94, 340, 183, 405, 391, 242, 215, 478, 205, 217, 130, 277, 466, 407, 436, 65, 231, 325]