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: [107, 213, 316, 252, 111, 446, 455, 189, 63, 209, 263, 164, 287, 17, 24, 89, 354, 193, 296, 161]
Example Output: [107, 213, 316, 252, 111, 446, 189, 63, 209, 263, 164, 287, 24, 89, 354, 193, 296, 161]

Example Input: [96, 173, 120, 362, 235, 73, 383, 490, 193, 394, 285, 328, 437, 381, 297, 158, 453, 60, 430, 282]
Example Output: [96, 173, 120, 362, 235, 73, 383, 193, 394, 285, 328, 437, 381, 297, 158, 453, 430, 282]

Example Input: [146, 476, 437, 115, 396, 298, 177, 208, 207, 439, 87, 277, 162, 393, 226, 48, 342, 247, 279, 172]
Example Output:
[146, 437, 115, 396, 298, 177, 208, 207, 439, 87, 277, 162, 393, 226, 342, 247, 279, 172]