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: ['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: ['u', '1039', 'H', '3593', 'F', 't', 'f', 'E', 'I', 't', 's', '2883', 'T', 'u', 'E', 't', 'f', 'k', '6049', 'r', '9633', 'd', '2853', '819', '9485', 'a', 'V', '4573', 'K', '861', 'd', '2021', '6079', 'F', '3535', 'e']

A: u, H, F, t, f, E, I, t, s, T, u, E, t, f, k, r, d, a, V, K, d, F, e, 1039, 3593, 2883, 6049, 9633, 2853, 819, 9485, 4573, 861, 2021, 6079, 3535
****
Q: ['4471', '6517', 'P', '9835']

A:
P, 4471, 6517, 9835
****