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.

Example Input: [263, 51, 349, 480, 330, 377, 135, 386, 264, 155, 404, 454, 237, 375, 496, 362, 441, 63, 378, 331]
Example Output: [263, 349, 480, 330, 377, 135, 386, 264, 155, 404, 454, 237, 375, 362, 441, 63, 378, 331]

Example Input: [313, 255, 220, 275, 326, 416, 386, 224, 18, 104, 82, 279, 138, 37, 314, 391, 250, 171, 467, 215]
Example Output: [313, 255, 220, 275, 326, 416, 386, 224, 104, 82, 279, 138, 37, 314, 391, 250, 171, 215]

Example Input: [64, 460, 181, 463, 242, 113, 252, 152, 198, 125, 232, 214, 106, 40, 310, 119, 363, 358, 296, 342]
Example Output:
[64, 460, 181, 242, 113, 252, 152, 198, 125, 232, 214, 106, 310, 119, 363, 358, 296, 342]