instruction:
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.
question:
['f', 'M', 'x', 'o', '5023', '5547', '7229', 'D', '4431', '9809', 'k', '3997', '8051', 'O', '7487', '7569', 'l', '3151', '4747', '9525', '3159', '5205', 'y', '2871', 'M', 'R']
answer:
f, M, x, o, D, k, O, l, y, M, R, 5023, 5547, 7229, 4431, 9809, 3997, 8051, 7487, 7569, 3151, 4747, 9525, 3159, 5205, 2871


question:
['N', 'M', '3951', '6031', '2277', 'M', 'Z', '1755', 'g', '255', 'G', '3423', 'W', 'Q', '393', 'M', '5045', 'c', 'J', '9001', '8103']
answer:
N, M, M, Z, g, G, W, Q, M, c, J, 3951, 6031, 2277, 1755, 255, 3423, 393, 5045, 9001, 8103


question:
['h', 'z', 'c', 'P', '1209', '477', '1825', 'h', 'C', 'K', '4421', '6681', 'h', 'P', 'R', 'd', '4439', 'w', 'm', 'f', '5611', '7047']
answer:

h, z, c, P, h, C, K, h, P, R, d, w, m, f, 1209, 477, 1825, 4421, 6681, 4439, 5611, 7047