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: [30, 294, 476, 39, 326, 132, 76, 359, 333, 493, 94, 12, 389, 398, 298, 57, 321, 202, 259, 310]
Example Output: [30, 294, 476, 39, 326, 132, 76, 359, 333, 94, 389, 398, 298, 57, 321, 202, 259, 310]

Example Input: [396, 348, 356, 333, 63, 417, 10, 449, 274, 59, 23, 37, 50, 277, 117, 245, 377, 405, 414, 85]
Example Output: [396, 348, 356, 333, 63, 417, 274, 59, 23, 37, 50, 277, 117, 245, 377, 405, 414, 85]

Example Input: [343, 388, 113, 57, 169, 354, 297, 78, 456, 45, 61, 166, 221, 203, 265, 489, 304, 25, 121, 96]
Example Output:
[343, 388, 113, 57, 169, 354, 297, 78, 456, 45, 61, 166, 221, 203, 265, 304, 121, 96]