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:
['327', '9245', 'D', 'U', 'C', 'D', '3149', 'J', '7545', 'x', 'O', 'i', '3189', '6727', '7141', '3135', '1903', 'I', '5179', 'o']
answer:
D, U, C, D, J, x, O, i, I, o, 327, 9245, 3149, 7545, 3189, 6727, 7141, 3135, 1903, 5179


question:
['4197', 'A', '29', '765', 'i', 'n', '5651']
answer:
A, i, n, 4197, 29, 765, 5651


question:
['p', 'y', 'S', 'R', '3375', 'w', '435', 'c', '2731', 'z', 'y', '4403', 'g', '5373', '6757', 'R', '343', 'a', '1783', 'c', 'o', 'k', 'R', 'e', '3081', 'l', '7155', 'G', '9409', 'l', 'r', '7647', 'H']
answer:

p, y, S, R, w, c, z, y, g, R, a, c, o, k, R, e, l, G, l, r, H, 3375, 435, 2731, 4403, 5373, 6757, 343, 1783, 3081, 7155, 9409, 7647