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.

Ex Input:
[18, 35, 303, 342, 95, 102, 132, 331, 164, 108, 276, 381, 301, 143, 44, 74, 408, 398, 56, 256]

Ex Output:
[35, 303, 342, 95, 102, 132, 331, 164, 108, 276, 381, 301, 143, 44, 74, 398, 56, 256]


Ex Input:
[383, 259, 183, 294, 144, 28, 497, 348, 479, 41, 488, 376, 399, 150, 486, 334, 33, 220, 21, 366]

Ex Output:
[383, 259, 183, 294, 144, 28, 348, 479, 41, 488, 376, 399, 150, 486, 334, 33, 220, 366]


Ex Input:
[470, 86, 429, 305, 267, 424, 292, 315, 306, 17, 104, 31, 44, 80, 397, 274, 217, 230, 213, 414]

Ex Output:

[86, 429, 305, 267, 424, 292, 315, 306, 104, 31, 44, 80, 397, 274, 217, 230, 213, 414]