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.

['9145', '6639', 'l', 'T', 's', 'X', '1485', '7971', 'P', '8157', 'E', '3797', 'c', '1981', 'j', 'j', '83', 's', '7441', 'J', 'z', 'q', 'n', '5063', 'U', 'D', '2213', 'c', '7307', 'C', 'x', 'K', 'W', 'K', '1671', '5895', 's', 'p', 'S']
l, T, s, X, P, E, c, j, j, s, J, z, q, n, U, D, c, C, x, K, W, K, s, p, S, 9145, 6639, 1485, 7971, 8157, 3797, 1981, 83, 7441, 5063, 2213, 7307, 1671, 5895

['8101', 'g', 'a', 'S', 'M', 'M', '9499', '4027', 'c', '6661', '783', 'O', '4471', '6575', '6045', 'i', '1561', '5103', 'l', '4653', '3']
g, a, S, M, M, c, O, i, l, 8101, 9499, 4027, 6661, 783, 4471, 6575, 6045, 1561, 5103, 4653, 3

['7009', 'b', '6555', '6413', '4275', 'C', '475', 'M', 'z', 'q', '3059', 'i', '9317', '7489', 'I', '8763', '3075', 'H', '8645', '6001', 'M', '6515', '6147', '1169', 'u', '4117', 'B', 'E', 'Q', '3167', 'y', '8739']

b, C, M, z, q, i, I, H, M, u, B, E, Q, y, 7009, 6555, 6413, 4275, 475, 3059, 9317, 7489, 8763, 3075, 8645, 6001, 6515, 6147, 1169, 4117, 3167, 8739