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: ['m', 'e', '4823']

A: m, e, 4823
****
Q: ['P', '5319', '7171', '1963', 'r', '8903', '1745', 'P', '3207', '5271', '7477', '7497', '759', 'U', 'U', 'Q', '9781', '7107', 'p', 'g', '2253', '3737', 'g', 'e']

A:
P, r, P, U, U, Q, p, g, g, e, 5319, 7171, 1963, 8903, 1745, 3207, 5271, 7477, 7497, 759, 9781, 7107, 2253, 3737
****