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: ['2217', '9971', 'M', 'f', '407', 'q', '1233', 'f', '6335', '8037', 'l', 'Z', 'w', '8193', '891', 'X', '7163', 'P']

Answer: M, f, q, f, l, Z, w, X, P, 2217, 9971, 407, 1233, 6335, 8037, 8193, 891, 7163


Question: ['Z', '3699', 'b', '117', 'R', 'D', '6799']

Answer: Z, b, R, D, 3699, 117, 6799


Question: ['I', '9437', '7261', 'I', '1777', 'm', '9817', 'q', 'M', 'F', 'i', '1839', 'y', '6029', 'M', '9037', '2545', 'R', '3327', '8465', '4785', '4895', 'q', 'E', 'q', 'I', 'l', '4285', 'b', 'B', 'U']

Answer:
I, I, m, q, M, F, i, y, M, R, q, E, q, I, l, b, B, U, 9437, 7261, 1777, 9817, 1839, 6029, 9037, 2545, 3327, 8465, 4785, 4895, 4285