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: ['O', '4065', '3793', '4123', 'i', '1017', '2023', 'Q', 'Y', 'u', '8089', '8707', '6203', '1597', 'y', '6851', 'M', '1927', '9641', 't', '4281', 'b', 'm', 'm', '5371', '4465', 'n', '6049', 't', '5251', 'w', 'K', '883', 'd', '4925', '4185']

A: O, i, Q, Y, u, y, M, t, b, m, m, n, t, w, K, d, 4065, 3793, 4123, 1017, 2023, 8089, 8707, 6203, 1597, 6851, 1927, 9641, 4281, 5371, 4465, 6049, 5251, 883, 4925, 4185
****
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: ['P', 's', 'F', 'l', 'V', 'n', 'B', 'B', '5231', 'L', 'o', '4093', 'e', 'r', '265', 'r', '1747', 'q', 'p', 's', '8763', '2617', 'm', 'R']

A:
P, s, F, l, V, n, B, B, L, o, e, r, r, q, p, s, m, R, 5231, 4093, 265, 1747, 8763, 2617
****