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: ['W', 'p', 'f', 'w', '1927', '2763', 'C', '2047', '7009', '7705', '5017', 'X', 'Z', 'c', 'O', 'p', 'n', '7685', '9255', 'L', '9653', '4471', '9485', 'l', 'H', '9169', 'H', 'O', '995', 'G']

A: W, p, f, w, C, X, Z, c, O, p, n, L, l, H, H, O, G, 1927, 2763, 2047, 7009, 7705, 5017, 7685, 9255, 9653, 4471, 9485, 9169, 995
****
Q: ['3217', '5145', 'Z', 'a', 'x', 'm', 'f', 'p']

A: Z, a, x, m, f, p, 3217, 5145
****
Q: ['5581', '3503', '4883', 'P', 'E', '9313', '9791', 's', 'E', 'D', 'g', 'R', 'H', 'g', 'f', 'H', '9975', 'z', '7083', 'Y', 'F', 'Q', '8259', '193', '8387', 'n', '6881', '8197']

A:
P, E, s, E, D, g, R, H, g, f, H, z, Y, F, Q, n, 5581, 3503, 4883, 9313, 9791, 9975, 7083, 8259, 193, 8387, 6881, 8197
****