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: ['339', 'P', '4847', '3561', 'k', 'c', 'L', '4091', '9207', 'H', '9483', 'F', 'u', 'l', 'Y', 'P', 'w', '4465', 'Z', 'U', 'i']

A: P, k, c, L, H, F, u, l, Y, P, w, Z, U, i, 339, 4847, 3561, 4091, 9207, 9483, 4465
****
Q: ['E', 'Z', 'R', '7969', 'h', '3385', 'z', '2135', 'O', '2817', 't', '6333', 'w', 'U', 'H', 'O', '4741']

A:
E, Z, R, h, z, O, t, w, U, H, O, 7969, 3385, 2135, 2817, 6333, 4741
****