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: ['927', 'u', '1963', 'p', '229', 'p', 'f', 'W', 'b', 'v', '4147', '9523', '8825', '9413', 'F', 'T', '569', 'M', '835', 'V', '3661', 'F', 'k', 'L']

A: u, p, p, f, W, b, v, F, T, M, V, F, k, L, 927, 1963, 229, 4147, 9523, 8825, 9413, 569, 835, 3661
****
Q: ['f', '9349', '4593', '9665', '4631', '6437', '4541', 'p', 'C', '3171', '4397', 'a', 'L', 'N', 'Y']

A:
f, p, C, a, L, N, Y, 9349, 4593, 9665, 4631, 6437, 4541, 3171, 4397
****