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:
['g', 'g', '9271', 'D', '9667', 'x', '117', 'E', '4013', 'D', 'M', 'Y', '3887', '5931', '273', '5333', 'Q', '1303', '4517']
answer:
g, g, D, x, E, D, M, Y, Q, 9271, 9667, 117, 4013, 3887, 5931, 273, 5333, 1303, 4517


question:
['8071', '2531', '6993', '3955', 'b', 'H', 'n', '8903', 'n', 'V', '2965', '2513', '1373', 'k', '1291', '2689']
answer:
b, H, n, n, V, k, 8071, 2531, 6993, 3955, 8903, 2965, 2513, 1373, 1291, 2689


question:
['c', '6545', '9399', 'k', '3117', 'k', '3493', '5315', 'E', '1163', 'k', 'x', '3001', '9973', 'Y', '3311', '397', '5611', '4745', 'm', 'n', 'Q', '1349', 'k', '5505', '8655', 'Y', 'x']
answer:

c, k, k, E, k, x, Y, m, n, Q, k, Y, x, 6545, 9399, 3117, 3493, 5315, 1163, 3001, 9973, 3311, 397, 5611, 4745, 1349, 5505, 8655