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: ['m', '3101', '8627', 'p', '5923', 'S', 'Z', '37', '5807', 'N', 'U', '4511', '1065', '173', 'J', '1343', 't', '2081', 'd', '6249', '527', 'z', 'i', '5497', '2309', 'N', 'g', 'U', '6609', 'L', '7373', '6897', '1361', '8413', 'b', 'k', 'Y']

A: m, p, S, Z, N, U, J, t, d, z, i, N, g, U, L, b, k, Y, 3101, 8627, 5923, 37, 5807, 4511, 1065, 173, 1343, 2081, 6249, 527, 5497, 2309, 6609, 7373, 6897, 1361, 8413
****
Q: ['3501', 'g', 'Z', 'Q', '867', '1659', '4049', '7137', 'r', 'Q', '1759', 'W', '667', '1997', 'D', '3655', 'h', '2805', 'R', '5181']

A: g, Z, Q, r, Q, W, D, h, R, 3501, 867, 1659, 4049, 7137, 1759, 667, 1997, 3655, 2805, 5181
****
Q: ['d', 'O', 'y', '2781', '9609', 'c', '2011', 'W', 'T', '9877', '9803', 'k', 'K', 'P', '4389', 'r', '8839', 'K', '2211', '2069', 'p', 'J', 'X', 'm', '5817', 'b']

A:
d, O, y, c, W, T, k, K, P, r, K, p, J, X, m, b, 2781, 9609, 2011, 9877, 9803, 4389, 8839, 2211, 2069, 5817
****