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', '5329', '7635', 'D', 'D', 'Y', '3097', 'Q', 'S', 'e', '4525', '5485', '6717', 'q', '7315', 'X', '8971', 'd', 'M', '407', '4931', 'o', '139']

A: n, D, D, Y, Q, S, e, q, X, d, M, o, 5329, 7635, 3097, 4525, 5485, 6717, 7315, 8971, 407, 4931, 139
****
Q: ['7103', 'F', '5531', '2423', '3987', '6031', 'T']

A: F, T, 7103, 5531, 2423, 3987, 6031
****
Q: ['F', 'm', 'G', '4327', 'l', '3405', 'X', '5953', 'V', '423', 'U', '8099', 'k', '1883', '9611', 'O', '6597', '8933', '6457', 'k', '1025', 'D', 'S', '4205', '1723', '7047', 'K', '6855', 'g', '3867', '3633', 'U', '7923', 'Z', 'g', '549', '789', '6053']

A:
F, m, G, l, X, V, U, k, O, k, D, S, K, g, U, Z, g, 4327, 3405, 5953, 423, 8099, 1883, 9611, 6597, 8933, 6457, 1025, 4205, 1723, 7047, 6855, 3867, 3633, 7923, 549, 789, 6053
****