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: ['9175', 'k', '2827', 'z', '9377', 'g', 'z', 'I', 'U', 'D', '8353', 'p', 'b', 'C', '9151', '4657', 'p', 'z', '7771', 'D', 'U', 'q', 'f', 'R', 'M', '5491', '5043', '4249', 'l', '3871']

A: k, z, g, z, I, U, D, p, b, C, p, z, D, U, q, f, R, M, l, 9175, 2827, 9377, 8353, 9151, 4657, 7771, 5491, 5043, 4249, 3871
****
Q: ['D', '465', 'O', '9737', '9185', 'w', 'K', '8155', '7515', '1049', '8299', 's', 'I', 'Z', '2049', '9119', '6869', 'e']

A: D, O, w, K, s, I, Z, e, 465, 9737, 9185, 8155, 7515, 1049, 8299, 2049, 9119, 6869
****
Q: ['A', '4233', '951', 'c', 'e', '6025', '3507', 'a', 'w', '9889', 'a', 'c', '729', 'U', '6283', '3557', '405', 'D', '6811']

A:
A, c, e, a, w, a, c, U, D, 4233, 951, 6025, 3507, 9889, 729, 6283, 3557, 405, 6811
****