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]: [138, 466, 396, 427, 497, 43, 221, 440, 116, 290, 104, 371, 304, 365, 460, 36, 146, 117, 448, 148]
[EX A]: [138, 466, 396, 427, 43, 221, 440, 116, 290, 104, 371, 304, 365, 460, 146, 117, 448, 148]

[EX Q]: [21, 220, 74, 306, 242, 105, 176, 191, 121, 395, 117, 378, 469, 42, 390, 458, 82, 404, 236, 374]
[EX A]: [220, 74, 306, 242, 105, 176, 191, 121, 395, 117, 378, 42, 390, 458, 82, 404, 236, 374]

[EX Q]: [182, 423, 307, 180, 23, 237, 204, 485, 58, 304, 401, 263, 122, 27, 325, 223, 59, 228, 479, 384]
[EX A]:
[182, 423, 307, 180, 237, 204, 58, 304, 401, 263, 122, 27, 325, 223, 59, 228, 479, 384]