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: [308, 152, 482, 111, 406, 290, 466, 303, 153, 60, 15, 270, 398, 473, 417, 69, 499, 43, 454, 280]
Example Output: [308, 152, 482, 111, 406, 290, 466, 303, 153, 60, 270, 398, 473, 417, 69, 43, 454, 280]

Example Input: [278, 195, 442, 163, 419, 246, 457, 267, 228, 186, 299, 354, 294, 201, 75, 317, 71, 477, 312, 284]
Example Output: [278, 195, 442, 163, 419, 246, 457, 267, 228, 186, 299, 354, 294, 201, 75, 317, 312, 284]

Example Input: [58, 371, 262, 231, 232, 348, 440, 278, 226, 372, 121, 366, 375, 221, 354, 380, 284, 198, 304, 441]
Example Output:
[371, 262, 231, 232, 348, 440, 278, 226, 372, 121, 366, 375, 221, 354, 380, 284, 198, 304]