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.

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

[465, 202, 316, 315, 113, 470, 381, 181, 422, 313, 187, 464, 304, 347, 234, 62, 287, 199, 416, 469]
[465, 202, 316, 315, 113, 381, 181, 422, 313, 187, 464, 304, 347, 234, 287, 199, 416, 469]

[475, 33, 286, 351, 181, 408, 370, 144, 293, 297, 301, 305, 482, 363, 18, 469, 497, 368, 474, 397]

[475, 33, 286, 351, 181, 408, 370, 144, 293, 297, 301, 305, 482, 363, 469, 368, 474, 397]