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.

Input: Consider Input: [94, 29, 277, 177, 271, 480, 398, 153, 345, 441, 248, 395, 43, 233, 439, 241, 99, 238, 264, 377]

Output: [94, 277, 177, 271, 398, 153, 345, 441, 248, 395, 43, 233, 439, 241, 99, 238, 264, 377]

Input: Consider Input: [167, 73, 213, 404, 311, 152, 280, 77, 489, 452, 81, 457, 140, 221, 82, 153, 43, 425, 232, 369]

Output: [167, 73, 213, 404, 311, 152, 280, 77, 452, 81, 457, 140, 221, 82, 153, 425, 232, 369]

Input: Consider Input: [82, 73, 183, 224, 442, 470, 301, 219, 460, 260, 12, 245, 451, 136, 140, 286, 485, 18, 491, 186]
Output: [82, 73, 183, 224, 442, 470, 301, 219, 460, 260, 245, 451, 136, 140, 286, 485, 18, 186]