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: ['N', '6887', '8543', '3155', '4193', 'M', 'T', 'I', '2149', 'e', 'm', '4615', 'G', 'S', 's', '6087', '7113', 'Y', 'O', 'K', '2753', 'k', 'r', '315', 'p', 'f', '1449', 'Q', '3953', '5841', 'y']

A: N, M, T, I, e, m, G, S, s, Y, O, K, k, r, p, f, Q, y, 6887, 8543, 3155, 4193, 2149, 4615, 6087, 7113, 2753, 315, 1449, 3953, 5841
****
Q: ['H', '8371', 'D', 'p', '7145', 'f', '1423', 'L', '9495', '5085', 'B', '973', 'z', '4571', '1541', '9771', '7531', 'E', 'n', '1583', 'S', '8133', '307', 'Q', 'q', 'h', '4615', 'N', 'h', '6415', '9517', 'R']

A: H, D, p, f, L, B, z, E, n, S, Q, q, h, N, h, R, 8371, 7145, 1423, 9495, 5085, 973, 4571, 1541, 9771, 7531, 1583, 8133, 307, 4615, 6415, 9517
****
Q: ['H', '5823', '9163', 'r', '2621', 'Y', '241', '7917', 'u', '4187', '9021', 'c', 'O', '5459', '6477', 't', '6029', '7251', '4063', 'l', '6893', 's', '3831', '829', 'z', 'R', '6663', 'L', '6669', 'C', '7485', 'r', 'r']

A:
H, r, Y, u, c, O, t, l, s, z, R, L, C, r, r, 5823, 9163, 2621, 241, 7917, 4187, 9021, 5459, 6477, 6029, 7251, 4063, 6893, 3831, 829, 6663, 6669, 7485
****