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.

Input: Consider Input: ['8987', 'M', 'u', 'd', '6277', '4233', 'y', 'D', 'd', '3387', 'n', '9509', '987', 'S', 'c', '6843', '587', '3545', 'Q', 'B', '779', '9547', 'c', 'r']

Output: M, u, d, y, D, d, n, S, c, Q, B, c, r, 8987, 6277, 4233, 3387, 9509, 987, 6843, 587, 3545, 779, 9547


Input: Consider Input: ['4949', '7753', '4835', '1691', 'S', 'L', 'M', '1689', '5627', '943', '5645', '8579', '7713', 'G', '593', 'f', 'u', '981', 's', '7915', '3345']

Output: S, L, M, G, f, u, s, 4949, 7753, 4835, 1691, 1689, 5627, 943, 5645, 8579, 7713, 593, 981, 7915, 3345


Input: Consider Input: ['n', 'F', 'O', 'r', '4969', 'w', '7149', '5249', '3611', '1689', 'h', 'Z', 'a', 'D']


Output: n, F, O, r, w, h, Z, a, D, 4969, 7149, 5249, 3611, 1689