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: [479, 274, 298, 481, 240, 412, 173, 127, 214, 130, 50, 341, 359, 219, 276, 202, 100, 431, 432, 496]
Example Output: [479, 274, 298, 481, 240, 412, 173, 127, 214, 130, 341, 359, 219, 276, 202, 100, 431, 432]

Example Input: [147, 484, 440, 399, 367, 222, 372, 111, 31, 57, 322, 106, 280, 94, 44, 464, 431, 205, 422, 90]
Example Output: [147, 440, 399, 367, 222, 372, 111, 57, 322, 106, 280, 94, 44, 464, 431, 205, 422, 90]

Example Input: [90, 238, 46, 361, 360, 194, 149, 237, 376, 111, 408, 435, 441, 429, 421, 374, 18, 100, 424, 343]
Example Output:
[90, 238, 46, 361, 360, 194, 149, 237, 376, 111, 408, 435, 429, 421, 374, 100, 424, 343]