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: [403, 191, 78, 114, 201, 87, 147, 148, 370, 189, 312, 18, 42, 132, 68, 342, 121, 73, 329, 364]
Example Output: [191, 78, 114, 201, 87, 147, 148, 370, 189, 312, 42, 132, 68, 342, 121, 73, 329, 364]

Example Input: [217, 401, 474, 30, 99, 165, 25, 346, 211, 357, 296, 67, 488, 315, 419, 228, 142, 222, 366, 82]
Example Output: [217, 401, 474, 30, 99, 165, 346, 211, 357, 296, 67, 315, 419, 228, 142, 222, 366, 82]

Example Input: [167, 73, 213, 404, 311, 152, 280, 77, 489, 452, 81, 457, 140, 221, 82, 153, 43, 425, 232, 369]
Example Output:
[167, 73, 213, 404, 311, 152, 280, 77, 452, 81, 457, 140, 221, 82, 153, 425, 232, 369]