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]: [376, 28, 153, 316, 102, 295, 243, 64, 262, 138, 494, 476, 269, 128, 336, 229, 196, 239, 154, 246]
[EX A]: [376, 153, 316, 102, 295, 243, 64, 262, 138, 476, 269, 128, 336, 229, 196, 239, 154, 246]

[EX Q]: [35, 75, 406, 19, 87, 39, 419, 497, 145, 307, 110, 241, 402, 449, 471, 189, 221, 283, 225, 386]
[EX A]: [35, 75, 406, 87, 39, 419, 145, 307, 110, 241, 402, 449, 471, 189, 221, 283, 225, 386]

[EX Q]: [233, 451, 63, 323, 428, 102, 201, 347, 349, 283, 324, 49, 205, 114, 427, 459, 470, 281, 432, 328]
[EX A]:
[233, 451, 63, 323, 428, 102, 201, 347, 349, 283, 324, 205, 114, 427, 459, 281, 432, 328]