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: [217, 401, 474, 30, 99, 165, 25, 346, 211, 357, 296, 67, 488, 315, 419, 228, 142, 222, 366, 82]
Example Output: [217, 401, 474, 30, 99, 165, 346, 211, 357, 296, 67, 315, 419, 228, 142, 222, 366, 82]

Example Input: [165, 98, 83, 105, 414, 186, 452, 258, 64, 256, 47, 142, 100, 26, 305, 351, 455, 224, 481, 321]
Example Output: [165, 98, 83, 105, 414, 186, 452, 258, 64, 256, 47, 142, 100, 305, 351, 455, 224, 321]

Example Input: [183, 191, 395, 34, 418, 148, 265, 425, 177, 257, 357, 314, 186, 97, 292, 407, 458, 420, 140, 173]
Example Output:
[183, 191, 395, 418, 148, 265, 425, 177, 257, 357, 314, 186, 97, 292, 407, 420, 140, 173]