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.

Input: Consider Input: [149, 218, 201, 435, 351, 391, 136, 289, 16, 187, 50, 257, 276, 129, 372, 467, 285, 334, 312, 117]

Output: [149, 218, 201, 435, 351, 391, 136, 289, 187, 50, 257, 276, 129, 372, 285, 334, 312, 117]


Input: Consider Input: [30, 181, 201, 14, 208, 147, 314, 404, 381, 310, 353, 370, 300, 214, 366, 368, 308, 318, 274, 347]

Output: [30, 181, 201, 208, 147, 314, 381, 310, 353, 370, 300, 214, 366, 368, 308, 318, 274, 347]


Input: Consider Input: [47, 152, 484, 82, 218, 464, 382, 405, 458, 486, 399, 455, 191, 10, 351, 327, 297, 456, 99, 16]


Output: [47, 152, 484, 82, 218, 464, 382, 405, 458, 399, 455, 191, 351, 327, 297, 456, 99, 16]