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: ['H', '407', 'n']

SOLUTION: H, n, 407

PROBLEM: ['M', 'x', '5631', '4515', '3367', 'B', 't', 'Z', '913', 'I', 'X', '591', 'Y', 'w', 'W', 'S']

SOLUTION: M, x, B, t, Z, I, X, Y, w, W, S, 5631, 4515, 3367, 913, 591

PROBLEM: ['Q', '9097', 'z', '1063']

SOLUTION:
Q, z, 9097, 1063