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: ['2217', '9971', 'M', 'f', '407', 'q', '1233', 'f', '6335', '8037', 'l', 'Z', 'w', '8193', '891', 'X', '7163', 'P']

A: M, f, q, f, l, Z, w, X, P, 2217, 9971, 407, 1233, 6335, 8037, 8193, 891, 7163
****
Q: ['n', '157', 'F', 'a', 'y', 'r', 'R', 'v', '9255', 'R', '2983', '6891', 'y', 'J', '767', 'T', 'a', '2319', 'i', 'p', '9905', '4439', 'v', 'z', '2223', 'U', '93', 'z', '3697', '107', '5911']

A: n, F, a, y, r, R, v, R, y, J, T, a, i, p, v, z, U, z, 157, 9255, 2983, 6891, 767, 2319, 9905, 4439, 2223, 93, 3697, 107, 5911
****
Q: ['p', 'G', 'x', 'b', '6213', '3561', '4243', 'L', '7855', 'B', 'C', '6605', 'U', '3193', 'W', '4255', 'B', 's', 'O', '3651', '4461', '5557', '8753', 'v', '5615', '8817', 'J', '6827', 'C', 'O', 'r', 'C', '8047', 't', '1649', '9311', 'J', 't']

A:
p, G, x, b, L, B, C, U, W, B, s, O, v, J, C, O, r, C, t, J, t, 6213, 3561, 4243, 7855, 6605, 3193, 4255, 3651, 4461, 5557, 8753, 5615, 8817, 6827, 8047, 1649, 9311
****