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: ['P', 'D', '199', '8721', '9133', 'b', 'i', '4041', 'l', '2799', '5949', '2191', '7095', '4573', 'h', '1561', 'k', 'J', 'a', 'O', '5877', '5109', 'X', '2253', '4381', 'S', '3609', '4219', 'Y', 'L', '9165', '1911', '861', '8627']

A: P, D, b, i, l, h, k, J, a, O, X, S, Y, L, 199, 8721, 9133, 4041, 2799, 5949, 2191, 7095, 4573, 1561, 5877, 5109, 2253, 4381, 3609, 4219, 9165, 1911, 861, 8627
****
Q: ['9929', '1121', '7789', '2189', '6513', 's', '7111', '2125', 'G', 'q', '3003', '2751', '4481', '4111', '447', 'J', '673', '8357', '6187', '3055']

A: s, G, q, J, 9929, 1121, 7789, 2189, 6513, 7111, 2125, 3003, 2751, 4481, 4111, 447, 673, 8357, 6187, 3055
****
Q: ['3543', '6239', '3229', '6791', 'x', '537', 'X', 'I', '4233', 'D', '1157', '9039', '8037', 'g', '1021', 'W', '6389', 'K', 'Z', '4607', 'o', 'x', 'b', '9165', '3321', '5261', '3289', '9035', 'L']

A:
x, X, I, D, g, W, K, Z, o, x, b, L, 3543, 6239, 3229, 6791, 537, 4233, 1157, 9039, 8037, 1021, 6389, 4607, 9165, 3321, 5261, 3289, 9035
****