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: ['9731', 'W', '5347', '8895', 'Y', 'H', 'X', '207', 'a', '9737', 'q', 'q', '1717', 'Y', '2329', '427', '5513', '905', 'r', 'H', 'S', '5043', 'c', 'E', '7305', 'r', '2043', 'w']

SOLUTION: W, Y, H, X, a, q, q, Y, r, H, S, c, E, r, w, 9731, 5347, 8895, 207, 9737, 1717, 2329, 427, 5513, 905, 5043, 7305, 2043

PROBLEM: ['9287', 'Y', 'F', '2179', 'M', '3435', 'F', 'd', 'G', 'z']

SOLUTION:
Y, F, M, F, d, G, z, 9287, 2179, 3435