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.
--------
Question: [417, 138, 283, 185, 305, 188, 35, 243, 291, 310, 12, 39, 463, 199, 239, 70, 381, 358, 30, 380]

Answer: [417, 138, 283, 185, 305, 188, 35, 243, 291, 310, 39, 199, 239, 70, 381, 358, 30, 380]


Question: [72, 78, 206, 464, 264, 470, 183, 291, 317, 432, 212, 415, 327, 266, 210, 192, 359, 36, 319, 86]

Answer: [72, 78, 206, 464, 264, 183, 291, 317, 432, 212, 415, 327, 266, 210, 192, 359, 319, 86]


Question: [16, 456, 127, 212, 440, 225, 162, 69, 369, 487, 497, 165, 78, 428, 372, 223, 446, 450, 36, 373]

Answer:
[456, 127, 212, 440, 225, 162, 69, 369, 487, 165, 78, 428, 372, 223, 446, 450, 36, 373]