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: ['k', 'Z']

A: k, Z
****
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: ['E', 'K', 'q', '325', 'w', '9763', 'Y', 'f', '5501', 'h', 'g', 'i', '1977', '9729', 'R', '6083', '7477', '9689', '3735', '8979', '6217', 'M', '8981', 'n', '3685', 'S', 'O', 'i', 'm', 'T', 'J', '623', '1555', '9657', 'c', '7249', '7809', 'D', '3753', 'R']

A:
E, K, q, w, Y, f, h, g, i, R, M, n, S, O, i, m, T, J, c, D, R, 325, 9763, 5501, 1977, 9729, 6083, 7477, 9689, 3735, 8979, 6217, 8981, 3685, 623, 1555, 9657, 7249, 7809, 3753
****