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: ['7221', 'c', 'r', 'd', '1583', 'i', 'A', 'w', '1477', '7905', 'n', '9297', 'f', '8789', 'k', '2099']

SOLUTION: c, r, d, i, A, w, n, f, k, 7221, 1583, 1477, 7905, 9297, 8789, 2099

PROBLEM: ['4815', '8851', 'G', 'X', 'o', '8431', '3023', '3981', 'I', 'X', 'E', '9227', '9149', 'J', 'v', '1211', '5729', 'A', 'h', 'f', 'X', '7565']

SOLUTION: G, X, o, I, X, E, J, v, A, h, f, X, 4815, 8851, 8431, 3023, 3981, 9227, 9149, 1211, 5729, 7565

PROBLEM: ['3879', '8493', '5917', '8575', 'N', 'O', '5257', 'n', '541', 'm', '3907', 'F', 'U', '6879', 'g', 'b', '6219', 'a', 'Z', 'I', 'f', 'M', '6531', '8991', '2141', '3461', 'g', '9535', '5869', 'B']

SOLUTION:
N, O, n, m, F, U, g, b, a, Z, I, f, M, g, B, 3879, 8493, 5917, 8575, 5257, 541, 3907, 6879, 6219, 6531, 8991, 2141, 3461, 9535, 5869