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.

Q: ['q', '8387']

A: q, 8387
****
Q: ['8987', 'M', 'u', 'd', '6277', '4233', 'y', 'D', 'd', '3387', 'n', '9509', '987', 'S', 'c', '6843', '587', '3545', 'Q', 'B', '779', '9547', 'c', 'r']

A: M, u, d, y, D, d, n, S, c, Q, B, c, r, 8987, 6277, 4233, 3387, 9509, 987, 6843, 587, 3545, 779, 9547
****
Q: ['7039', 'g', '4223', '6465', '8773', 'N', 'Z', '9013', '2519', '5585', 'F', 'B', 'P', '2049', '3925', '7767', 'H', '8573', '6147', '4665']

A:
g, N, Z, F, B, P, H, 7039, 4223, 6465, 8773, 9013, 2519, 5585, 2049, 3925, 7767, 8573, 6147, 4665
****