TASK DEFINITION: In this task, you are given an input list. A list contains several comma-separated items written within brackets. You need to collate all the alphabetical elements at the start of the list followed by all the numerical elements of the list. Maintain the order in which the alphabetical elements appear in the given input list, and do the same for the numerical elements.
PROBLEM: ['7407', '9439', 'U', '5683', 'J', '6189', '6435', 'M', '6159', '8827', '2051', '1953', 'H', '5143', '7409', 'F', '3141', '1403', '7981']

SOLUTION: U, J, M, H, F, 7407, 9439, 5683, 6189, 6435, 6159, 8827, 2051, 1953, 5143, 7409, 3141, 1403, 7981

PROBLEM: ['2989', 'l', 'a', 'C', '6411', 'n', '55', '4103', 'y', 'b', 'G', 'G']

SOLUTION: l, a, C, n, y, b, G, G, 2989, 6411, 55, 4103

PROBLEM: ['877', '4545', '1251', '6917', '3617', 'O', '2793']

SOLUTION:
O, 877, 4545, 1251, 6917, 3617, 2793