TASK DEFINITION: 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.
PROBLEM: ['4959', 'M', '5969', '5543', 'N', 'U', 'h', 'X', '7923', '4573', '983', 'f', 'X', 'e', '1503', 'g', '1927', '721']

SOLUTION: M, N, U, h, X, f, X, e, g, 4959, 5969, 5543, 7923, 4573, 983, 1503, 1927, 721

PROBLEM: ['n', '7651', 'l', '1629', 'w', '1795', '1237', '1201', '861', '9627', '1403', '5641', '5905', 'h', '9585', '9561', '6387', '9037', '1643', '4759', '4749']

SOLUTION: n, l, w, h, 7651, 1629, 1795, 1237, 1201, 861, 9627, 1403, 5641, 5905, 9585, 9561, 6387, 9037, 1643, 4759, 4749

PROBLEM: ['6381', 'n', 'M', 'a', '6809', 'N', '375', 'c', 'm', 'N', '6085', 'W', 'T', 'q']

SOLUTION:
n, M, a, N, c, m, N, W, T, q, 6381, 6809, 375, 6085