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.

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

[48, 111, 78, 307, 167, 74, 84, 332, 99, 291, 457, 294, 278, 368, 203, 53, 205, 359, 183, 140]
[111, 78, 307, 167, 74, 84, 332, 99, 291, 294, 278, 368, 203, 53, 205, 359, 183, 140]

[148, 107, 470, 218, 40, 464, 221, 443, 295, 328, 59, 419, 248, 213, 298, 467, 135, 75, 281, 65]

[148, 107, 218, 464, 221, 443, 295, 328, 59, 419, 248, 213, 298, 467, 135, 75, 281, 65]