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.

['p', 'h', '8605', 'd', '5185', 'B', 'C', '1331', 'r', '2355', '1035', '3547', '7761', '8951', 'T', '1981', 'v', 'a', 'w', 'H', 'e', '5075', 'h', 'o', '3765', '7729', 'Q', '9289', 'i', 'k', 'E', 'k', 'i', 'd', '4879', '821']
p, h, d, B, C, r, T, v, a, w, H, e, h, o, Q, i, k, E, k, i, d, 8605, 5185, 1331, 2355, 1035, 3547, 7761, 8951, 1981, 5075, 3765, 7729, 9289, 4879, 821

['D', 'D', 'O', '173', 'D', 'Q', '3133', '7227', 'j', '8037', 'g', '5337', 'O', '1113', 'X', '1053', 'Q', '4597', '1461', 'x', 'I', '4671', 'U', '7495', 's', '8333', '4627', '1005', 'p', '6697', 'C']
D, D, O, D, Q, j, g, O, X, Q, x, I, U, s, p, C, 173, 3133, 7227, 8037, 5337, 1113, 1053, 4597, 1461, 4671, 7495, 8333, 4627, 1005, 6697

['3045', '4487', 'q', '8539', '4129', 's', 't', 'K', '6383', 'R', '2277', '1827', '3965', '165', 'y', '9023', 'q', '3331', 'Y', 'L', '4889', 'Q', 'W', '4129', 'F', '803', '2949', '1489', 'h', 'B', '161', '3165', 'k', '7217', '2837', '1267', 'Z', '9321', '2709']

q, s, t, K, R, y, q, Y, L, Q, W, F, h, B, k, Z, 3045, 4487, 8539, 4129, 6383, 2277, 1827, 3965, 165, 9023, 3331, 4889, 4129, 803, 2949, 1489, 161, 3165, 7217, 2837, 1267, 9321, 2709