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: [19, 50, 261, 131, 14, 321, 442, 132, 176, 403, 185, 382, 290, 279, 164, 18, 485, 54, 325, 438]
Example Output: [19, 50, 261, 131, 321, 442, 132, 176, 403, 185, 382, 290, 279, 164, 18, 54, 325, 438]

Example Input: [69, 56, 112, 338, 121, 75, 108, 327, 432, 190, 463, 88, 431, 344, 236, 478, 441, 485, 453, 460]
Example Output: [69, 112, 338, 121, 75, 108, 327, 432, 190, 463, 88, 431, 344, 236, 478, 441, 453, 460]

Example Input: [140, 15, 240, 110, 245, 201, 350, 222, 65, 319, 268, 14, 176, 455, 98, 256, 344, 383, 299, 394]
Example Output:
[140, 15, 240, 110, 245, 201, 350, 222, 65, 319, 268, 176, 98, 256, 344, 383, 299, 394]