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: ['f', 'M', 'x', 'o', '5023', '5547', '7229', 'D', '4431', '9809', 'k', '3997', '8051', 'O', '7487', '7569', 'l', '3151', '4747', '9525', '3159', '5205', 'y', '2871', 'M', 'R']

A: f, M, x, o, D, k, O, l, y, M, R, 5023, 5547, 7229, 4431, 9809, 3997, 8051, 7487, 7569, 3151, 4747, 9525, 3159, 5205, 2871
****
Q: ['6009', '4183', 'i', '4773', 'a', 'V', 'A', '4643', '5073', '3723', 'E', 'r', 'H']

A: i, a, V, A, E, r, H, 6009, 4183, 4773, 4643, 5073, 3723
****
Q: ['1415', 'p', '9795', 'O', 'D', 'r', '873', '1689', '4145', '5547', 'O', '7751', '627', 'Q', '1957', 'T', '3749', 'k', '7403', '2871']

A:
p, O, D, r, O, Q, T, k, 1415, 9795, 873, 1689, 4145, 5547, 7751, 627, 1957, 3749, 7403, 2871
****