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.

[Q]: [47, 152, 484, 82, 218, 464, 382, 405, 458, 486, 399, 455, 191, 10, 351, 327, 297, 456, 99, 16]
[A]: [47, 152, 484, 82, 218, 464, 382, 405, 458, 399, 455, 191, 351, 327, 297, 456, 99, 16]


[Q]: [351, 275, 373, 100, 165, 48, 325, 485, 431, 331, 441, 497, 42, 243, 453, 291, 183, 449, 88, 427]
[A]: [351, 275, 373, 100, 165, 48, 325, 485, 431, 331, 441, 243, 453, 291, 183, 449, 88, 427]


[Q]: [348, 331, 85, 114, 388, 240, 368, 60, 452, 27, 189, 219, 236, 175, 478, 89, 442, 410, 281, 171]
[A]:
[348, 331, 85, 114, 388, 240, 368, 60, 452, 189, 219, 236, 175, 89, 442, 410, 281, 171]