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.

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

A: [30, 294, 476, 39, 326, 132, 76, 359, 333, 94, 389, 398, 298, 57, 321, 202, 259, 310]
****
Q: [165, 98, 83, 105, 414, 186, 452, 258, 64, 256, 47, 142, 100, 26, 305, 351, 455, 224, 481, 321]

A: [165, 98, 83, 105, 414, 186, 452, 258, 64, 256, 47, 142, 100, 305, 351, 455, 224, 321]
****
Q: [251, 295, 130, 340, 258, 247, 486, 11, 213, 462, 303, 129, 345, 440, 415, 354, 276, 298, 259, 482]

A:
[251, 295, 130, 340, 258, 247, 213, 462, 303, 129, 345, 440, 415, 354, 276, 298, 259, 482]
****