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.

['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']
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

['9343', 'V', 'U', 'y', '9701', 'B', '4561', '6505', '4791', '5903', '9061', 'x', 'r', 'B', 'C', '6647', '7651', 'O', 'n', 'Z', '4545', '6603', 'k', '637', '7255', 'F', 'W', 'p', 'F', '2813', '1113', '9769', '9317', 'w']
V, U, y, B, x, r, B, C, O, n, Z, k, F, W, p, F, w, 9343, 9701, 4561, 6505, 4791, 5903, 9061, 6647, 7651, 4545, 6603, 637, 7255, 2813, 1113, 9769, 9317

['o', '3275', '1465', '9535', '787', '2817', '8939', '9829']

o, 3275, 1465, 9535, 787, 2817, 8939, 9829