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]: ['7879', 'h', '5401', 'e', 'B', '9419', 'f', '7509', '2617', 'r', 'q', 'L', '2453']
[A]: h, e, B, f, r, q, L, 7879, 5401, 9419, 7509, 2617, 2453


[Q]: ['w', 'U', 'E', '7401', '3899', '8743', 'r', 'S', 'L', 'p', '6867', '7219', '6783', '5363', 'n', '4915', 'w', '9787', '9217', 'n', 'd', 'S', 'Z', 'C', '1661', '5319', 'e', 'd', 'M', '8251']
[A]:
w, U, E, r, S, L, p, n, w, n, d, S, Z, C, e, d, M, 7401, 3899, 8743, 6867, 7219, 6783, 5363, 4915, 9787, 9217, 1661, 5319, 8251