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: ['h', '2041', '7621', 'f', 'S', '665', 'x', 'g', 'E', '4371', '6589', 'l', 'C', '789', 'm', '2215', '1017', '3089', 'X', '8773']

A: h, f, S, x, g, E, l, C, m, X, 2041, 7621, 665, 4371, 6589, 789, 2215, 1017, 3089, 8773
****
Q: ['7637', '9993', '9947', 'w', '7593', '5621', 'W', 'W', '7157', '4811', '873', '7065', '3095', 'o', 'S', '5275', '3847', '4315', 'x', '53', '5923', 'v', 'h', 'N', 'L', 'S', '2547', '1703', '7883', '7665']

A: w, W, W, o, S, x, v, h, N, L, S, 7637, 9993, 9947, 7593, 5621, 7157, 4811, 873, 7065, 3095, 5275, 3847, 4315, 53, 5923, 2547, 1703, 7883, 7665
****
Q: ['1861', '4741', '5439', '7275', '7507', '7729', 'M', '8433', 'a', 'J', 'Y', '3929', 'O', '9159', '4759', '181', 'K', 'H', 'g', '2769', 'q']

A:
M, a, J, Y, O, K, H, g, q, 1861, 4741, 5439, 7275, 7507, 7729, 8433, 3929, 9159, 4759, 181, 2769
****