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: [474, 127, 371, 252, 472, 257, 150, 361, 121, 230, 313, 392, 157, 67, 143, 336, 408, 211, 29, 140]

A: [127, 371, 252, 472, 257, 150, 361, 121, 230, 313, 392, 157, 67, 143, 336, 408, 211, 140]
****
Q: [465, 197, 210, 43, 382, 223, 247, 65, 332, 73, 230, 25, 394, 224, 377, 238, 329, 249, 131, 420]

A: [197, 210, 43, 382, 223, 247, 65, 332, 73, 230, 394, 224, 377, 238, 329, 249, 131, 420]
****
Q: [381, 58, 152, 449, 360, 14, 215, 473, 141, 301, 375, 487, 384, 214, 184, 380, 338, 188, 344, 424]

A:
[381, 58, 152, 449, 360, 215, 473, 141, 301, 375, 384, 214, 184, 380, 338, 188, 344, 424]
****