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', 'k', '2219', 'e', 'X', '9837']

SOLUTION: Y, k, e, X, 2219, 9837

PROBLEM: ['7035', 'L', 'R']

SOLUTION: L, R, 7035

PROBLEM: ['3987', 'z', 'b', 'S', '4703', 'b', 'e', '5873', 'k', 'G', '7943', '2837', '5267', 'x', '2191', '1263', '7607', 'I', '6221', '4335', 'c', '3967', '4979', 'U', 'f', '8597']

SOLUTION:
z, b, S, b, e, k, G, x, I, c, U, f, 3987, 4703, 5873, 7943, 2837, 5267, 2191, 1263, 7607, 6221, 4335, 3967, 4979, 8597