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.

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

[EX Q]: [403, 300, 162, 435, 35, 100, 286, 145, 494, 164, 351, 110, 197, 260, 82, 46, 419, 14, 196, 147]
[EX A]: [403, 300, 162, 435, 35, 100, 286, 145, 164, 351, 110, 197, 260, 82, 46, 419, 196, 147]

[EX Q]: [252, 464, 56, 101, 249, 69, 439, 102, 117, 331, 160, 173, 60, 476, 387, 225, 258, 259, 276, 268]
[EX A]:
[252, 464, 101, 249, 69, 439, 102, 117, 331, 160, 173, 60, 387, 225, 258, 259, 276, 268]