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]: [251, 295, 130, 340, 258, 247, 486, 11, 213, 462, 303, 129, 345, 440, 415, 354, 276, 298, 259, 482]
[EX A]: [251, 295, 130, 340, 258, 247, 213, 462, 303, 129, 345, 440, 415, 354, 276, 298, 259, 482]

[EX Q]: [140, 15, 240, 110, 245, 201, 350, 222, 65, 319, 268, 14, 176, 455, 98, 256, 344, 383, 299, 394]
[EX A]: [140, 15, 240, 110, 245, 201, 350, 222, 65, 319, 268, 176, 98, 256, 344, 383, 299, 394]

[EX Q]: [107, 213, 316, 252, 111, 446, 455, 189, 63, 209, 263, 164, 287, 17, 24, 89, 354, 193, 296, 161]
[EX A]:
[107, 213, 316, 252, 111, 446, 189, 63, 209, 263, 164, 287, 24, 89, 354, 193, 296, 161]