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: [169, 479, 63, 103, 352, 422, 83, 481, 255, 291, 77, 499, 184, 18, 234, 193, 149, 269, 38, 307]

A: [169, 479, 63, 103, 352, 422, 83, 481, 255, 291, 77, 184, 234, 193, 149, 269, 38, 307]
****
Q: [376, 28, 153, 316, 102, 295, 243, 64, 262, 138, 494, 476, 269, 128, 336, 229, 196, 239, 154, 246]

A: [376, 153, 316, 102, 295, 243, 64, 262, 138, 476, 269, 128, 336, 229, 196, 239, 154, 246]
****
Q: [21, 220, 74, 306, 242, 105, 176, 191, 121, 395, 117, 378, 469, 42, 390, 458, 82, 404, 236, 374]

A:
[220, 74, 306, 242, 105, 176, 191, 121, 395, 117, 378, 42, 390, 458, 82, 404, 236, 374]
****