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.

['1787', 'X', 'W', '1343', 'j', '1969', 'L', '7935', 'a', 'g', 'Z', 'n', 'F', 's', 'o', 'h', '3539', '4327', 'E', 'd', 'U', '3851', 'P', '4813', '8039', 'X']
X, W, j, L, a, g, Z, n, F, s, o, h, E, d, U, P, X, 1787, 1343, 1969, 7935, 3539, 4327, 3851, 4813, 8039

['M', 'N', 'M', '7683', '2723', '3135', 'G', 'E', '5519', 'D', 'V', '8531', '6151', '7465', 'W', 'X', 'v', '3467', 'i', '335', 'L', 'P', 'f', '6647', '5287', 'N', 's', 'd', '2565', '8403', '3921', '2757']
M, N, M, G, E, D, V, W, X, v, i, L, P, f, N, s, d, 7683, 2723, 3135, 5519, 8531, 6151, 7465, 3467, 335, 6647, 5287, 2565, 8403, 3921, 2757

['R', 'N', 'N', 'U', 'U', 'R', '583', 'a', '9951', '6653', 's', '2977', '7251']

R, N, N, U, U, R, a, s, 583, 9951, 6653, 2977, 7251