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: ['v', 'p', 'd', 'D', 'u', '8905', '4031', 'x', 'i', '2727', 'F', 'i', '4877', '6781', '433', 'c', 'q', 'X', 'G', 'u', '6155', '4239', '9599', 'c', '165', '39', '9491', 'y', 'x', '8959', 'S', '3145']

Answer: v, p, d, D, u, x, i, F, i, c, q, X, G, u, c, y, x, S, 8905, 4031, 2727, 4877, 6781, 433, 6155, 4239, 9599, 165, 39, 9491, 8959, 3145


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: ['M', 'm', 'n', '3301', '7765', '6163', 'K']

Answer:
M, m, n, K, 3301, 7765, 6163