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

Output: [30, 294, 476, 39, 326, 132, 76, 359, 333, 94, 389, 398, 298, 57, 321, 202, 259, 310]


Input: Consider Input: [403, 300, 162, 435, 35, 100, 286, 145, 494, 164, 351, 110, 197, 260, 82, 46, 419, 14, 196, 147]

Output: [403, 300, 162, 435, 35, 100, 286, 145, 164, 351, 110, 197, 260, 82, 46, 419, 196, 147]


Input: Consider Input: [403, 300, 162, 435, 35, 100, 286, 145, 494, 164, 351, 110, 197, 260, 82, 46, 419, 14, 196, 147]


Output: [403, 300, 162, 435, 35, 100, 286, 145, 164, 351, 110, 197, 260, 82, 46, 419, 196, 147]