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: [39, 211, 289, 232, 406, 34, 298, 47, 421, 216, 175, 234, 306, 312, 227, 374, 55, 187, 350, 63]

A: [39, 211, 289, 232, 406, 298, 47, 216, 175, 234, 306, 312, 227, 374, 55, 187, 350, 63]
****
Q: [429, 421, 445, 366, 393, 324, 384, 463, 440, 487, 477, 80, 352, 434, 425, 330, 442, 321, 369, 259]

A: [429, 421, 445, 366, 393, 324, 384, 463, 440, 477, 352, 434, 425, 330, 442, 321, 369, 259]
****
Q: [396, 348, 356, 333, 63, 417, 10, 449, 274, 59, 23, 37, 50, 277, 117, 245, 377, 405, 414, 85]

A:
[396, 348, 356, 333, 63, 417, 274, 59, 23, 37, 50, 277, 117, 245, 377, 405, 414, 85]
****