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]: [475, 33, 286, 351, 181, 408, 370, 144, 293, 297, 301, 305, 482, 363, 18, 469, 497, 368, 474, 397]
[EX A]: [475, 33, 286, 351, 181, 408, 370, 144, 293, 297, 301, 305, 482, 363, 469, 368, 474, 397]

[EX Q]: [183, 191, 395, 34, 418, 148, 265, 425, 177, 257, 357, 314, 186, 97, 292, 407, 458, 420, 140, 173]
[EX A]: [183, 191, 395, 418, 148, 265, 425, 177, 257, 357, 314, 186, 97, 292, 407, 420, 140, 173]

[EX Q]: [40, 47, 450, 284, 109, 189, 448, 296, 104, 12, 148, 65, 300, 394, 25, 31, 193, 118, 203, 250]
[EX A]:
[40, 47, 284, 109, 189, 448, 296, 104, 148, 65, 300, 394, 25, 31, 193, 118, 203, 250]