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: ['x', 'u', '6687', '3617', '4795', '3665', 'A', '4355', '9183', '3477', 'B', 'P', 't', 'L', 'G', 'o', 'c', 'U', 'n', '1453', '2499', 'B', 's', 'd', 'm', 'n', '959', 'K', 'H', '9159', 'H', '8191', 'B', '4837', '9287', '7891', '8529', '3229', '377']

A: x, u, A, B, P, t, L, G, o, c, U, n, B, s, d, m, n, K, H, H, B, 6687, 3617, 4795, 3665, 4355, 9183, 3477, 1453, 2499, 959, 9159, 8191, 4837, 9287, 7891, 8529, 3229, 377
****
Q: ['7877', '8991', '5669', 'r', '4699', '3493', '9175', 'j', 'e', '9885', '9621', 'a', '8083', 'L', 'G', '787', '4821', '6591', '2251']

A: r, j, e, a, L, G, 7877, 8991, 5669, 4699, 3493, 9175, 9885, 9621, 8083, 787, 4821, 6591, 2251
****
Q: ['P', '1881', 'h', '2045', 'l', 'f', 'm', 'J', '6555', 'E', 'm', '5537', '3641', 'y', 'd', '9303', 't', 'd', 'i', 'j', 'l', 'S', '9341', 'k', 'q', '9235', '6103', '3437']

A:
P, h, l, f, m, J, E, m, y, d, t, d, i, j, l, S, k, q, 1881, 2045, 6555, 5537, 3641, 9303, 9341, 9235, 6103, 3437
****