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.

[494, 358, 167, 490, 485, 377, 195, 352, 259, 495, 355, 29, 329, 463, 41, 493, 115, 162, 245, 379]
[494, 358, 167, 490, 485, 377, 195, 352, 259, 355, 329, 463, 41, 493, 115, 162, 245, 379]

[35, 75, 406, 19, 87, 39, 419, 497, 145, 307, 110, 241, 402, 449, 471, 189, 221, 283, 225, 386]
[35, 75, 406, 87, 39, 419, 145, 307, 110, 241, 402, 449, 471, 189, 221, 283, 225, 386]

[169, 350, 185, 108, 112, 167, 64, 279, 397, 41, 277, 459, 151, 179, 408, 462, 474, 498, 306, 388]

[169, 350, 185, 108, 112, 167, 64, 279, 397, 277, 459, 151, 179, 408, 462, 474, 306, 388]