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: ['8983', '3387', 'A', '7837', '5923', 'f', 'G', '2929', '4447', '8045', 'h', '1391', '8899', 'P', 'K', '2027', '1473', '3891', '1059', 'o', 'f', 'k', '6831', 'o', 'M']

A: A, f, G, h, P, K, o, f, k, o, M, 8983, 3387, 7837, 5923, 2929, 4447, 8045, 1391, 8899, 2027, 1473, 3891, 1059, 6831
****
Q: ['m', 'T', 'z', '4153', 'd', '3833', '2085', 'd', 'Q', '7615', '733', 'y', '735', '7795', 'U', 'K', '1951', 'i', '5127', '9621', '4871']

A: m, T, z, d, d, Q, y, U, K, i, 4153, 3833, 2085, 7615, 733, 735, 7795, 1951, 5127, 9621, 4871
****
Q: ['5531', '1751', '6951', '9783', 'F', 'k', 'F', 'm', '487', '2601', '1603', 'T', '7215', 'm', '7181', '9307', 'M', 'G', '8405', '2181', 'h']

A:
F, k, F, m, T, m, M, G, h, 5531, 1751, 6951, 9783, 487, 2601, 1603, 7215, 7181, 9307, 8405, 2181
****