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: ['r', 'g', '5847', '329', '6267']

SOLUTION: r, g, 5847, 329, 6267

PROBLEM: ['9411', '803', 'G', 'z', 'j', '1877', '8253', '1589', '5159', '9103', '3569', '7447', '5177', '3991', 'X', '9597', 's', 'r', 'f', '2545', '9655', '2103', '895', 'A', '5087', '6709', '8013', 'K', '99', 'p', '1327', '595', 'H', 'J', 'F', 'J']

SOLUTION: G, z, j, X, s, r, f, A, K, p, H, J, F, J, 9411, 803, 1877, 8253, 1589, 5159, 9103, 3569, 7447, 5177, 3991, 9597, 2545, 9655, 2103, 895, 5087, 6709, 8013, 99, 1327, 595

PROBLEM: ['B', 'H', 'm', 'S']

SOLUTION:
B, H, m, S