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: [316, 127, 149, 295, 384, 178, 487, 131, 398, 38, 255, 33, 102, 187, 107, 336, 20, 356, 45, 66]
Example Output: [316, 127, 149, 295, 384, 178, 131, 398, 38, 255, 33, 102, 187, 107, 336, 356, 45, 66]

Example Input: [203, 26, 33, 336, 212, 419, 339, 463, 243, 152, 71, 202, 200, 309, 494, 150, 177, 361, 207, 209]
Example Output: [203, 33, 336, 212, 419, 339, 463, 243, 152, 71, 202, 200, 309, 150, 177, 361, 207, 209]

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]