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:
['8817', 'm', '1795', 'q', '2999', 'i', 'n', '5895', '6609', '901', '4099', '5973', 'M', 'j', '5867', '6035', '9425', '3401', '2677', '8939', 'v', 'y', 'S', 'X', '1411', '5595', 'm', '1871']
answer:
m, q, i, n, M, j, v, y, S, X, m, 8817, 1795, 2999, 5895, 6609, 901, 4099, 5973, 5867, 6035, 9425, 3401, 2677, 8939, 1411, 5595, 1871


question:
['1521', 'R', '3695', '6547', 'e', 'q', 'S', '2639', '3099', '967', '4651', 'v', 'r', '4143', 'H', 'D', 'Q', '7183', 'O', 'Z', 'v', '7663', 'v', 'm', 'P']
answer:
R, e, q, S, v, r, H, D, Q, O, Z, v, v, m, P, 1521, 3695, 6547, 2639, 3099, 967, 4651, 4143, 7183, 7663


question:
['o', 'N', 'U', '5931', '4247', 'k', '9173', '9405', 'X', '6085', 'n', 'k', '3455', 'G', '9499', '4699', '9575', 'A', 'Y', '967', 'J', '4303', '1381', 'J', 'R', 'l', '8683', 'r', '8401', '4343', '1867', 'l', 'E', '5417', '9995', '2615', '1021', '4539', '2877']
answer:

o, N, U, k, X, n, k, G, A, Y, J, J, R, l, r, l, E, 5931, 4247, 9173, 9405, 6085, 3455, 9499, 4699, 9575, 967, 4303, 1381, 8683, 8401, 4343, 1867, 5417, 9995, 2615, 1021, 4539, 2877