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: ['4197', 'A', '29', '765', 'i', 'n', '5651']

SOLUTION: A, i, n, 4197, 29, 765, 5651

PROBLEM: ['Q', '8275', 'r', '4235', 'F', 'p']

SOLUTION: Q, r, F, p, 8275, 4235

PROBLEM: ['n', 'L', '8757', 'U', 'J', '3589', '2601', '571', 'A', '4569', 'D', 'Z', '2457', '1367', '1753', '247', 'K', '9745', 'p', 'h']

SOLUTION:
n, L, U, J, A, D, Z, K, p, h, 8757, 3589, 2601, 571, 4569, 2457, 1367, 1753, 247, 9745