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:
['8987', 'M', 'u', 'd', '6277', '4233', 'y', 'D', 'd', '3387', 'n', '9509', '987', 'S', 'c', '6843', '587', '3545', 'Q', 'B', '779', '9547', 'c', 'r']
answer:
M, u, d, y, D, d, n, S, c, Q, B, c, r, 8987, 6277, 4233, 3387, 9509, 987, 6843, 587, 3545, 779, 9547


question:
['9957', '8427', 'I', 'n', '5301', 'd', '8207', '7543']
answer:
I, n, d, 9957, 8427, 5301, 8207, 7543


question:
['8513', 'Q', 'Y', '9197', 'C', 'f', '7137', '1537', '3973', 'V', '2395', 'o', 'C', 'q', 'p', '5821', 'S', 'J', '2495', 'R', '1329']
answer:

Q, Y, C, f, V, o, C, q, p, S, J, R, 8513, 9197, 7137, 1537, 3973, 2395, 5821, 2495, 1329