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: [262, 298, 392, 201, 182, 290, 259, 206, 97, 108, 156, 426, 363, 293, 493, 334, 264, 151, 463, 76]

A: [262, 298, 392, 201, 182, 290, 259, 206, 97, 108, 156, 426, 363, 293, 334, 264, 151, 463]
****
Q: [115, 198, 31, 156, 33, 496, 182, 291, 266, 72, 348, 74, 443, 168, 214, 118, 133, 65, 318, 375]

A: [115, 198, 156, 33, 182, 291, 266, 72, 348, 74, 443, 168, 214, 118, 133, 65, 318, 375]
****
Q: [417, 138, 283, 185, 305, 188, 35, 243, 291, 310, 12, 39, 463, 199, 239, 70, 381, 358, 30, 380]

A:
[417, 138, 283, 185, 305, 188, 35, 243, 291, 310, 39, 199, 239, 70, 381, 358, 30, 380]
****