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: ['C', 'x', '4187', 'L', 'N', 'h', 'n', '5057', 'J', 'U', 'f', 'C', 'V', '8055', '5863', '759', '5985', 'C', 'A', '6269', 'N', '5869', '8183', '1361', '3095', '865', 'r', '5061', 'C', 'y', 'n', '5695', 'X', 'L', '5001', '1787', '2173', 'U', '2953', 'i']

A: C, x, L, N, h, n, J, U, f, C, V, C, A, N, r, C, y, n, X, L, U, i, 4187, 5057, 8055, 5863, 759, 5985, 6269, 5869, 8183, 1361, 3095, 865, 5061, 5695, 5001, 1787, 2173, 2953
****
Q: ['u', 'M', 'l', 'F', '5951', '4811', '2237', '9935', 'e', 'w', '5215', 'o', 'b', '9323', 'u', '9215', 'g', '7527', '6297', 'p', '593', '4813', 'Z', '3411', 'k', '5917', '7927', 'y', '1933', 'S', '7151']

A: u, M, l, F, e, w, o, b, u, g, p, Z, k, y, S, 5951, 4811, 2237, 9935, 5215, 9323, 9215, 7527, 6297, 593, 4813, 3411, 5917, 7927, 1933, 7151
****
Q: ['9317', '2999', 'a', '7779', 'C', '3015', '8649', 'J', '9743', '1743', 'm', 'Z', '6391', 'E']

A:
a, C, J, m, Z, E, 9317, 2999, 7779, 3015, 8649, 9743, 1743, 6391
****