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: [412, 137, 66, 38, 496, 194, 231, 357, 234, 175, 50, 103, 150, 120, 338, 362, 222, 242, 36, 164]

A: [412, 137, 66, 38, 194, 231, 357, 234, 175, 50, 103, 150, 120, 338, 362, 222, 242, 164]
****
Q: [218, 206, 376, 271, 360, 378, 419, 249, 132, 211, 455, 181, 306, 276, 413, 125, 79, 104, 75, 163]

A: [218, 206, 376, 271, 360, 378, 419, 249, 132, 211, 181, 306, 276, 413, 125, 79, 104, 163]
****
Q: [280, 437, 173, 59, 180, 211, 399, 136, 90, 473, 166, 153, 21, 484, 415, 96, 332, 315, 53, 478]

A:
[280, 437, 173, 59, 180, 211, 399, 136, 90, 473, 166, 153, 415, 96, 332, 315, 53, 478]
****