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: ['g', 'g', '9271', 'D', '9667', 'x', '117', 'E', '4013', 'D', 'M', 'Y', '3887', '5931', '273', '5333', 'Q', '1303', '4517']

A: g, g, D, x, E, D, M, Y, Q, 9271, 9667, 117, 4013, 3887, 5931, 273, 5333, 1303, 4517
****
Q: ['r', '5483', 'w', '1445', '4725', 'u', '8063', '5863', '8783', '4399', '5149', 'J', 'I', 'n', 'w', 'n', 'k', 'i', 'S', '3827', '267', 'h', 'I', '4449', 'a', '7731', 'y', 'T', '9733', '9475', 'H', 'w', 'X', '587', 'O', '3631', '7795', '1903', '9433']

A: r, w, u, J, I, n, w, n, k, i, S, h, I, a, y, T, H, w, X, O, 5483, 1445, 4725, 8063, 5863, 8783, 4399, 5149, 3827, 267, 4449, 7731, 9733, 9475, 587, 3631, 7795, 1903, 9433
****
Q: ['9139', 'C', '675', 'G', 'k', 'l', '2379', 'Y', '4959', 'I', 'N', 'Q', 'z', '5815', 'o', '2587', '2365', 'K', 'l', '369', '5193', '9399', 'T', '2121']

A:
C, G, k, l, Y, I, N, Q, z, o, K, l, T, 9139, 675, 2379, 4959, 5815, 2587, 2365, 369, 5193, 9399, 2121
****