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: ['Y', 'M', '2647', 's', '7917', 'p', '3605', '5895', 'k', '4215', '9063', 'T', '5345']

SOLUTION: Y, M, s, p, k, T, 2647, 7917, 3605, 5895, 4215, 9063, 5345

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

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

PROBLEM: ['1271', 'A', '173', 'b', '839', 'P', 'y', 'P', '4377', 'W', '5591', 'I', 'l', '5607', '2077', 'Q', '2993', 'g', '5603', '4793', 'c', 'z', 'u', '7293', 'p', '7439', 'U']

SOLUTION:
A, b, P, y, P, W, I, l, Q, g, c, z, u, p, U, 1271, 173, 839, 4377, 5591, 5607, 2077, 2993, 5603, 4793, 7293, 7439