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: ['8927', '4495', 'H', '5399', 'K', 'i', '877', 'n', 'Y', '3979', '3817', 'm', 'i', 'u', 'j', 'X', '1849', '9491', '7567', 'P', 'L', 'B', '4095', '3985', '9199', '1137', '9221', '5751', 'r', 'r', '5223', '5441', '5837', '5569', '7149', 'A', 'n']

A: H, K, i, n, Y, m, i, u, j, X, P, L, B, r, r, A, n, 8927, 4495, 5399, 877, 3979, 3817, 1849, 9491, 7567, 4095, 3985, 9199, 1137, 9221, 5751, 5223, 5441, 5837, 5569, 7149
****
Q: ['T', '5777', '3067', '2309', 'S', 'H', 'e', '5353', '2675', '2233', '7635', '7559', '1797', 'G', '3733', 'm', '3775', 'Q', '3827', '1607', 'M', '2039', 'D', 'w', 'C', 'S', 'p', 'Y', 'N', 'e', 'n', 'i', '4459', '3267', '4919', '3849']

A: T, S, H, e, G, m, Q, M, D, w, C, S, p, Y, N, e, n, i, 5777, 3067, 2309, 5353, 2675, 2233, 7635, 7559, 1797, 3733, 3775, 3827, 1607, 2039, 4459, 3267, 4919, 3849
****
Q: ['1463', '8591', 'P', '2129', 'h', '6121', '8905', 'i', '4303', 'q', '819', 'p', '409', 'U', '6835', '8371', '4749', 'r', '5283', 'L', 'W', 'O', 'O', 'm', '7295', '3023', '1751', 'r', '1217', '9713', 'x', 'D', '3207', '6875', '1797', '3277', 'T', '9045']

A:
P, h, i, q, p, U, r, L, W, O, O, m, r, x, D, T, 1463, 8591, 2129, 6121, 8905, 4303, 819, 409, 6835, 8371, 4749, 5283, 7295, 3023, 1751, 1217, 9713, 3207, 6875, 1797, 3277, 9045
****