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: [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: [69, 160, 276, 229, 273, 11, 394, 242, 103, 383, 62, 81, 457, 307, 371, 490, 303, 415, 309, 297]
Example Output: [69, 160, 276, 229, 273, 394, 242, 103, 383, 62, 81, 457, 307, 371, 303, 415, 309, 297]

Example Input: [15, 147, 431, 30, 323, 141, 119, 248, 89, 335, 255, 352, 440, 38, 175, 69, 283, 315, 10, 403]
Example Output:
[15, 147, 431, 30, 323, 141, 119, 248, 89, 335, 255, 352, 38, 175, 69, 283, 315, 403]