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: [494, 358, 167, 490, 485, 377, 195, 352, 259, 495, 355, 29, 329, 463, 41, 493, 115, 162, 245, 379]

A: [494, 358, 167, 490, 485, 377, 195, 352, 259, 355, 329, 463, 41, 493, 115, 162, 245, 379]
****
Q: [106, 391, 309, 73, 281, 120, 59, 360, 52, 156, 217, 21, 192, 464, 394, 288, 432, 356, 349, 273]

A: [106, 391, 309, 73, 281, 120, 59, 360, 52, 156, 217, 192, 394, 288, 432, 356, 349, 273]
****
Q: [343, 157, 391, 238, 311, 143, 397, 159, 270, 176, 301, 319, 300, 134, 154, 121, 441, 274, 489, 103]

A:
[343, 157, 391, 238, 311, 143, 397, 159, 270, 176, 301, 319, 300, 134, 154, 121, 441, 274]
****