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: ['1243', '6133', '7145', '4061', '4919', 'y', '2955', '2707', 'y', 'w', 'P', 'c', '6387', '5119', 'c', 'B', 'N', '4849', '7999', '4571', 'U', 'M', 'S', '5981', 'n']

SOLUTION: y, y, w, P, c, c, B, N, U, M, S, n, 1243, 6133, 7145, 4061, 4919, 2955, 2707, 6387, 5119, 4849, 7999, 4571, 5981

PROBLEM: ['S', '8365', 'C', '9185', 'd', 'Z', 'R', '2537', 'r', '5021', '7251', '8567', '4061', '3311', '6439', '5359', 'x', '9931', '87', '2169', '9021', '195', 'N', 'o', 'K', '747', 'h', '6187', 'x', 'n', 'p', '1219', 'P', '4661', 'c', 'm', '5775', 'u', '5929', 'G']

SOLUTION: S, C, d, Z, R, r, x, N, o, K, h, x, n, p, P, c, m, u, G, 8365, 9185, 2537, 5021, 7251, 8567, 4061, 3311, 6439, 5359, 9931, 87, 2169, 9021, 195, 747, 6187, 1219, 4661, 5775, 5929

PROBLEM: ['6077', '2161', '1741', '4025', 'N', '6353', 'j', '8347', 'W', '5931', 'w', '1611', 'C', 'x', 'V', 'g', 'a', 'N', '2479', 'C', 'c', '9325', 'i', '1269', 'q', 'k', 'G', '6573', '8143', 'g', '9553']

SOLUTION:
N, j, W, w, C, x, V, g, a, N, C, c, i, q, k, G, g, 6077, 2161, 1741, 4025, 6353, 8347, 5931, 1611, 2479, 9325, 1269, 6573, 8143, 9553